Граф коммитов

15768 Коммитов

Автор SHA1 Сообщение Дата
Shen Chen 9954a3fbe2
[release/dev17.11] Update dependencies from dotnet/arcade (#10870)
This pull request updates the following dependencies

[marker]: <> (Begin:aa7f5ce7-ed24-46a1-195c-08dc952fc8a2)
## From https://github.com/dotnet/arcade
- **Subscription**: aa7f5ce7-ed24-46a1-195c-08dc952fc8a2
- **Build**: 20240913.3
- **Date Produced**: September 13, 2024 10:27:20 AM UTC
- **Commit**: 8c08d889b3c0b3f19398faceaccd74d0f184a3fb
- **Branch**: refs/heads/release/8.0

[DependencyUpdate]: <> (Begin)

- **Updates**:
- **Microsoft.SourceBuild.Intermediate.arcade**: [from
8.0.0-beta.24461.2 to 8.0.0-beta.24463.3][5]
- **Microsoft.DotNet.Arcade.Sdk**: [from 8.0.0-beta.24461.2 to
8.0.0-beta.24463.3][5]

[5]: 0028fccccc...8c08d889b3

[DependencyUpdate]: <> (End)


[marker]: <> (End:aa7f5ce7-ed24-46a1-195c-08dc952fc8a2)
2024-09-23 10:50:23 -07:00
Shen Chen 8f473f23d7
[release/dev17.12] Update dependencies from dotnet/arcade (#10890)
This pull request updates the following dependencies

[marker]: <> (Begin:761d0bec-2526-451d-fdf9-08dcc6cdae74)
## From https://github.com/dotnet/arcade
- **Subscription**: 761d0bec-2526-451d-fdf9-08dcc6cdae74
- **Build**: 20240916.2
- **Date Produced**: September 16, 2024 6:20:31 PM UTC
- **Commit**: 04b9022eba9c184a8036328af513c22e6949e8b6
- **Branch**: refs/heads/release/9.0

[DependencyUpdate]: <> (Begin)

- **Updates**:
- **Microsoft.SourceBuild.Intermediate.arcade**: [from
9.0.0-beta.24463.2 to 9.0.0-beta.24466.2][2]
- **Microsoft.DotNet.Arcade.Sdk**: [from 9.0.0-beta.24463.2 to
9.0.0-beta.24466.2][2]

[2]: bcba693945...04b9022eba

[DependencyUpdate]: <> (End)


[marker]: <> (End:761d0bec-2526-451d-fdf9-08dcc6cdae74)
2024-09-23 10:50:14 -07:00
Chris Sienkiewicz fb78076212
Fuse incorrect page directives (#10907)
* Add tests
* Emit the attribute in runtime code, even if it has errors
* Update test baseline
2024-09-23 10:17:58 -07:00
dotnet-maestro[bot] 01f860d9e7 Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20240917.1
Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 10.0.0-alpha.1.24459.1 -> To Version 10.0.0-alpha.1.24467.1
2024-09-23 12:43:28 +00:00
Andrew Hall 11603e60f0 Use project instead of taghelpers from document 2024-09-22 15:03:08 -07:00
Andrew Hall 80f22d1707 Feedback 2024-09-22 14:52:03 -07:00
Andrew Hall 6aa9aee9ab
Calculate SuppressAddComponentParameter in tooling (#10763)
Fixes #10736

Chris did a good breakdown of what this value is used for #10736 (comment)
2024-09-19 17:35:35 -07:00
Andrew Hall e23328e964 Add telemetry for 'bad' experiences based on tag helpers 2024-09-19 17:31:12 -07:00
David Wengier 3b870867b8
Fix some `AssumeNotNull` assumptions (#10901) 2024-09-20 07:59:03 +10:00
Chris Sienkiewicz 0f60d02da2
Extensions refactor (#10850)
* Delete V2 page directive

* Update inject tests to use real classification passes

* Update model tests to use real classification passes

* Delete duplicated model directives and passes

* Delete duplicated inject extensions, directives and nodes

* Delete duplicate inject target extension
- Update the MVC3 version to optionally not enforce nullability to keep code gen identical

* Remove duplicated taghelper extension methods and metadata

* Remove duplicated diagnostic factories

* Delete duplicated tag helper extensions and intermediate node types

* Delete duplicated component types

* Delete duplicated ViewComponentTypeVisitor

* Delete duplicated viewcomponment taghelper passes
2024-09-19 13:23:03 -07:00
Alex Gavrilov c2bff15ca1
Harden completion test (#10902) 2024-09-19 00:11:08 -07:00
David Wengier cfd20a8d98 Delete failing test that validates a bad assumption 2024-09-19 14:19:59 +10:00
David Wengier 3feef4dff7 Fix build 2024-09-19 13:15:44 +10:00
David Wengier ca31b61e55 Don't throw if a document has been removed before we got to process them 2024-09-19 12:08:20 +10:00
David Wengier 5cb68cbe54 Allow TextChange.NewText to be null 2024-09-19 11:39:15 +10:00
David Wengier 020f8e7542
Fix formatting integration tests (#10900)
These broke due to Razor comment formatting changes, so just updating
the expected output.
2024-09-19 09:24:20 +10:00
David Wengier 53d8f07e2c Fix expected output to reflect formatting change 2024-09-19 08:08:22 +10:00
Alex Gavrilov 53dae17245
Fixing HTML attribute commit (#10897)
* Fixing HTML attribute commit

* PR feedback
2024-09-18 10:57:59 -07:00
David Wengier 4b3e4096e8
Cohost diagnostics support (#10882)
Fixes https://github.com/dotnet/razor/issues/10696
Fixes https://github.com/dotnet/razor/issues/10769
Fixes https://github.com/dotnet/razor/issues/10874
Needs Roslyn change: https://github.com/dotnet/roslyn/pull/75102

The actual code change was quite straight foward. The test code was a
bigger pain. Previously in cohosting tests we had two MEF composition,
one for Razor and one for Roslyn. Since Roslyn diagnostics can only run,
or at least start, in devenv, we now need three MEF compositions -
Roslyn devenv, Roslyn OOP and razor OOP - and two workspaces - Roslyn
devenv and Roslyn OOP - and our previous MEF infrastructure really
didn't handle this well, as evidenced by the fact that this PR also
fixes https://github.com/dotnet/razor/issues/10874

Now our MEF infra is simpler: We still cache catalogs etc. statically
the save time, but we create an `ExportProvider` as needed and expect
consumers to dispose of it like any other `IDisposable`, though there is
also here a test fixture to share the editor composition in the
formatting tests so we don't pay a huge penalty in terms of test run
time.

Commit-at-a-time if you want to read the story from beginning to end,
but it should be reasonably okay to just review as a whole too.
2024-09-18 14:11:37 +10:00
David Wengier fe5dc7beae Remove unnecessary code 2024-09-18 13:16:45 +10:00
David Wengier 1e9eaaede5 Fix tests 2024-09-18 13:16:37 +10:00
David Wengier 966d7628b9
Fix `FormattingContext` disposal (#10887)
From a conversation on Teams. `FormattingContext` is disposable because
it owns a workspace, but it also gets non-destructively mutated so it's
unclear as to whether the disposal was working as intended, and unclear
to consumers what needed to happen. Upon review of the code, this PR:

* Moves workspace ownership to the caller of the formatting code, so its
disposal is clear
* Makes `AdhocWorkspaceFactory` shared code, because it did the same
thing in OOP and LSP server
* Adds `IHostServicesProvider` to OOP, because thats the thing that was
actually different between OOP and LSP server
* Random cleanup of some related things
2024-09-18 08:04:19 +10:00
David Wengier a7d127c021 PR Feedback 2024-09-18 07:54:30 +10:00
David Wengier c349de7362 Bump Roslyn to 4.12.0-3.24466.4 2024-09-18 07:20:51 +10:00
Phil Allen a06817077d
Fix #10891 - Formatting does not respect indentation within Razor comment blocks (#10893)
Altered `HtmlFormattingPassBase` to discard any `TextChange`s that start
within a `RazorCommentBlockSyntax` and added a test to catch any
regressions in the future.

Fixes https://github.com/dotnet/razor/issues/10891
2024-09-17 14:18:20 -07:00
dotnet-maestro[bot] 05a0fdd281 Update dependencies from https://github.com/dotnet/arcade build 20240916.2
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 9.0.0-beta.24463.2 -> To Version 9.0.0-beta.24466.2
2024-09-17 17:44:38 +00:00
Derek Gray dda1b20b1e Respond to PR requested changes 2024-09-17 08:23:24 -05:00
Jan Jones 4467256ff7
Use Basic.Reference.Assemblies in Mvc Extension tests (#10888)
* Use Basic.Reference.Assemblies in Mvc Extension tests

* Remove unused shim projects
2024-09-17 09:52:55 +02:00
David Wengier 103645feb2 🦭 2024-09-17 12:49:27 +10:00
David Wengier 614d5e4412 PR feedback 2024-09-17 11:40:01 +10:00
David Wengier 763f6994ac Move workspace creation down even lower so the lifetime is contrained to a single formatting operation 2024-09-17 11:39:52 +10:00
Derek Gray f994272410 Fix #10891 - Formatting does not respect indentation within Razor comment blocks 2024-09-16 18:07:36 -05:00
Matt Mitchell c38fc3b9d2
ExcludeFromSourceBuild->ExcludeFromSourceOnlyBuild (#10892) 2024-09-16 21:40:48 +00:00
David Wengier 04d688072c
[main] Update dependencies from dotnet/source-build-reference-packages (#10889) 2024-09-17 06:10:19 +10:00
dotnet-maestro[bot] 90f05d84a9 Update dependencies from https://github.com/dotnet/arcade build 20240913.2
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 9.0.0-beta.24426.3 -> To Version 9.0.0-beta.24463.2
2024-09-16 17:23:49 +00:00
dotnet-maestro[bot] 821c789c70 Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20240909.1
Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 10.0.0-alpha.1.24455.1 -> To Version 10.0.0-alpha.1.24459.1
2024-09-16 12:52:10 +00:00
David Wengier 26fb68c103 Since we don't own the workspace, it would be rude to add documents to it. 2024-09-16 17:40:26 +10:00
David Wengier f217326ffd Remove unused service 2024-09-16 17:40:26 +10:00
David Wengier b29a1c3f34 Rename type to better indicate its new role
And remove the Uri property as it was almost entirely unused
2024-09-16 17:40:25 +10:00
David Wengier c128730081 Remove AdhocWorkspaceFactory from DI, and make it fully own the workspace it creates 2024-09-16 17:36:59 +10:00
David Wengier c1f8fd5d6b Move code down, and share the factory code 2024-09-16 14:37:08 +10:00
David Wengier 4207fcf417 Remove unused parameter 2024-09-16 14:28:12 +10:00
Alex Gavrilov bc0e2afe46
Fixing WrapWithDiv bug (#10871)
* Fixing WrapWithDive bug

https://github.com/dotnet/razor/issues/10819

* Adding and fixing tests

1. All existing tests were calling Verify on client connection without marking setup Verifyable, so it was a no-op (did nothing)
2. Two tests were erroneously verifying the opposite of what they should've - they were trying to verify that we made a delegated server call when we shouldn't have made one.

I made sure all setups are marked verifyable, and that we verify that calls weren't made when they shouldn't have been made.
2024-09-15 20:05:47 -07:00
dotnet-maestro[bot] 2a251a4296 Update dependencies from https://github.com/dotnet/arcade build 20240913.3
Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24461.2 -> To Version 8.0.0-beta.24463.3
2024-09-14 13:33:46 +00:00
dotnet-maestro[bot] 0164f1acbd Update dependencies from https://github.com/dotnet/arcade build 20240913.3
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24461.2 -> To Version 8.0.0-beta.24463.3
2024-09-14 13:18:44 +00:00
dotnet-maestro[bot] 9a0dc6d6a7 Update dependencies from https://github.com/dotnet/arcade build 20240913.3
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24461.2 -> To Version 8.0.0-beta.24463.3
2024-09-14 13:05:32 +00:00
David Wengier f3a633bf3a
Disable test parallelisation in language services (#10885) 2024-09-14 17:57:14 +10:00
David Wengier 5a6fde922b Disable test parallelisation in language services, because it uses ExportProviderFactory which has static state 2024-09-14 17:05:15 +10:00
Matt Mitchell ca91065e45
Switch to new VMR control schema. (#10883)
Now that razor is on .NET 9 arcade, it can switch over to the new control schema. For this repo, this is roughly:
- DotNetBuildFromSource -> DotNetBuildSourceOnly - Building a source-only build.
- DotnetBuildFromSourceFlavor == Product -> DotNetBuildOrchestrator == true - Building in the VMR, could be source-only or MS's build.
- ArcadeBuildFromSource -> DotNetBuildRepo == true -> Indicates an outer repo build.
2024-09-13 17:32:10 +00:00
dotnet-maestro[bot] 593d15bbe1 Update dependencies from https://github.com/dotnet/arcade build 20240911.2
Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24461.1 -> To Version 8.0.0-beta.24461.2
2024-09-13 13:29:08 +00:00