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

14531 Коммитов

Автор SHA1 Сообщение Дата
Dustin Campbell b4d110ddcd Remove unused ISnapshotResolver methods 2024-06-06 16:17:38 -07:00
Dustin Campbell 652e3fa96c Add `IProjectSnapshotManager.TryResolveAllProjects` extension method 2024-06-06 16:13:50 -07:00
Dustin Campbell cafed7091e Add `IProjectSnapshotManager.FindPotentialProjects` extension method 2024-06-06 15:38:36 -07:00
Dustin Campbell 3159c09a57 Add `IProjectSnapshotManager.GetMiscellaneousProject()` extension method 2024-06-06 15:34:06 -07:00
Dustin Campbell 72b93ffd5f Create `LspProjectSnapshotManager` with misc files project baked in
Update `ProjectSnapshotManger` to take an optional delegate that can be used to populate the initial set of projects and documents in the constructor. In the language server, this is used to add the miscellaneous files project.
2024-06-06 15:24:46 -07:00
David Wengier ed752fd8e3
Simplify our middle layer bits (#10455)
In aid of future moves to System.Text.Json, cleaning up our middle layer
helps a bit because a) its one of the APIs that tie us and Roslyn to
Newtonsoft, but we don't actually take advantage, and b) we have to
implement an interface that is tied to Newtonsoft but we don't actually
benefit from.

I also stopped us using our own contained language library for the
middle layer bits because we weren't getting any real value of it, and
it makes this simpler in future to be able to separate what we need,
versus what contained library consumers need.
2024-06-07 04:42:53 +10:00
David Wengier 9641e7057e
Update src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/RazorCSharpInterceptionMiddleLayer.cs 2024-06-07 04:22:42 +10:00
Dustin Campbell e21a78ebe8
Clean up `RazorLogHubTraceProvider` (#10446)
I noticed a `Package.GetGlobalService(...)` call and decided to go ahead
and clean it up. While working on this, I also replaced a
`SemaphoreSlim` with a VS `ReentrantSemaphore`.
2024-06-05 14:48:14 -07:00
Dustin Campbell 9d52c01acd
Clean up `ViewCodeCommandHandler` (#10448)
This started out with a goal of removing a call to `JTF.Run(...)` and
ended up a few more tweaks.

@davidwengier: I have no idea how to invoke this command on a Razor
file. Do you have any tips?
2024-06-05 14:44:44 -07:00
David Wengier 94af32bf9e Avoid using the contained language system for inteceptors so we can more easily change serialization later 2024-06-05 10:18:45 -07:00
David Wengier 62c1451386 Remove our middle layer that did nothing but tie us to a deprecated API 2024-06-05 09:49:46 -07:00
Jan Jones 8a9b471ed5
Enable 1ES's SBOM generation (#10444) 2024-06-05 09:34:30 -07:00
dotnet bot 3123275b44
Merge release/dev17.11 to main (#10449)
This is an automatically generated pull request from release/dev17.11
into main.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.11
- https://github.com/dotnet/razor/find/main

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.11-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.11
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.11-to-main --force
```
2024-06-05 00:12:50 +02:00
Dustin Campbell 42db8213e3 Remove `DocumentInteractionManager` since it's no longer used 2024-06-04 11:52:31 -07:00
Dustin Campbell 7c8e30f866 Clean up `File.Exists(...)` cache in `ViewCodeCommandHandler`. 2024-06-04 11:51:51 -07:00
Dustin Campbell 6fcee4f86d Replace `ImmutableHashSet<string>` with `FrozenSet<string>` 2024-06-04 11:43:11 -07:00
Dustin Campbell d039f8fe08 Remove `JTF.Run(...)` from `ViewCodeCommandHandler` 2024-06-04 11:18:11 -07:00
Dustin Campbell 7f408f8fca Convert `TryGetTraceSource` to bool + out style 2024-06-04 10:28:43 -07:00
Dustin Campbell d6cec81565 Use primary constructor 2024-06-04 10:26:41 -07:00
Dustin Campbell 7cd793543b Remove defunct #pramga warning disable 2024-06-04 10:25:44 -07:00
Dustin Campbell 81a3380ad7 Remove unneeded abstract base class 2024-06-04 10:24:59 -07:00
Dustin Campbell 408c316b15 Clean up `VisualStudioWindowsLogHubTraceProvider`
This change cleans up `VisualStudioWindowsLogHubTraceProvider` in the following ways:

- Remove call to `Package.GetGlobalService(...)`and use newer `IVsService<,>` helper
- Replace `SemaphoreSlim` with a `ReentrantSemaphore`. (Related to #10390)
2024-06-04 10:21:33 -07:00
Jan Jones 31b79cb36b
Enforce code style in Compiler (#10430)
* Enforce code style in Compiler

* Fix headers

* Fix unused code

* Suppress EnableGenerateDocumentationFile
2024-06-03 21:43:01 +02:00
dotnet-maestro[bot] 6f45629522
Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20240528.2 (#10441)
Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 9.0.0-alpha.1.24270.1 -> To Version 9.0.0-alpha.1.24278.2

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-03 15:50:26 +02:00
dotnet-maestro[bot] 62b9ebeb31
Update dependencies from https://github.com/dotnet/arcade build 20240520.4 (#10438)
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk
 From Version 8.0.0-beta.24225.1 -> To Version 8.0.0-beta.24270.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-03 10:17:17 +00:00
Shen Chen 759c0de08d
Target release/dev17.11 to rel/d17.11 (#10433)
Prepare VS snap today.
2024-05-31 23:09:02 -07:00
David Wengier f226a8fae3
Tweak diagnostics reporting to make things more consistent and reliable (#10429)
Fixes an issue reported by Vlad where Html/Js diagnostics were not
showing. Will explain in comments
2024-06-01 08:28:25 +10:00
Phil Allen f8e15ce2c7
Generate `project.razor.vscode.bin` files when projects don't use the Razor SDK (#10422)
This only helps in DevKit, for now. In non-DevKit, Roslyn doesn't even
send `IDynamicFileInfo` requests, but hopefully that can change too.
2024-05-31 15:14:14 -07:00
Shen Chen 3c30a1f882 Target release/dev17.11 to rel/d17.11 2024-05-31 10:31:18 -07:00
dotnet bot 4c90f5ceca
Merge release/dev17.10 to release/dev17.11 (#10419)
This is an automatically generated pull request from release/dev17.10
into release/dev17.11.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.10
- https://github.com/dotnet/razor/find/release/dev17.11

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.10-to-release/dev17.11
git reset --hard upstream/release/dev17.11
git merge upstream/release/dev17.10
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.10-to-release/dev17.11 --force
```
2024-05-31 05:03:21 -07:00
Jan Jones 3cdf838fd9
Merge branch 'release/dev17.10' into release/dev17.11 2024-05-31 13:42:34 +02:00
Jan Jones ce7a0bf3fc
Use Basic.Reference.Assemblies (#10416)
* Use Basic.Reference.Assemblies

* Update baselines

* Centralize references
2024-05-31 10:19:11 +02:00
David Wengier 0a266bb68f Set project on reported diagnostics, and change how virtual document uris are set 2024-05-31 11:40:49 +10:00
Jan Jones 8071442667
Remove unnecessary variable assignments (#10428) 2024-05-30 18:43:30 +02:00
Dustin Campbell 2f0f5fc72b
A little clean up (#10424)
Well, it might be more clean-up than I originally intended. 😄

Recommend reviewing commit by commit
2024-05-30 07:26:07 -07:00
Matt Mitchell 62c5f524fb
Call NuGetAuthenticate after SetupNuGetSources (#10423)
The new version of the powershell script will not place the creds in the nuget.config file, instead it will use standard environment variables. Update the YAML file to use NuGetAuthenticate to avoid a build break that may happen if the credential provider is not available.
2024-05-30 09:26:11 +02:00
Dustin Campbell 01ecbe5578 Don't expose JsonRpc.StartListening() method 2024-05-29 17:10:41 -07:00
David Wengier fe732a9558 PR Feedback 2024-05-30 09:13:25 +10:00
Dustin Campbell 5130c9d32c Remove odd TempDirectory class 2024-05-29 15:51:31 -07:00
Dustin Campbell 5ab4b582ed Rename RazorLanguageServerWrapper to RazorLanguageServerHost 2024-05-29 14:58:07 -07:00
Dustin Campbell 6bea86d511 Convert HostServicesPovider to an interface 2024-05-29 13:32:18 -07:00
Dustin Campbell 359def8e74 Clean up LspLogger and move to rzls 2024-05-29 12:50:14 -07:00
Dustin Campbell 483010d96e Clean up MEF and assembly loader and move to rzls 2024-05-29 12:41:00 -07:00
Dustin Campbell f4da1b7c24 Add [DesignerCategory] to keep RazorFileSystemWatcher from being displayed as a component 2024-05-29 11:52:24 -07:00
Dustin Campbell 285f7df44d Display CLaSP files in separate folder in MS.ANC.Razor.LanguageServer project 2024-05-29 11:50:41 -07:00
Jan Jones 85e57f732e
Swap expected and actual in verify helper (#10413) 2024-05-29 09:58:05 +02:00
David Wengier dbe72bdb77 Process regular documents if there are no additional documents 2024-05-29 16:46:53 +10:00
dotnet bot 27db2531a9
Merge release/dev17.11 to main (#10421)
This is an automatically generated pull request from release/dev17.11
into main.


Once all conflicts are resolved and all the tests pass, you are free to
merge the pull request. 🐯

## Troubleshooting conflicts

### Identify authors of changes which introduced merge conflicts
Scroll to the bottom, then for each file containing conflicts copy its
path into the following searches:
- https://github.com/dotnet/razor/find/release/dev17.11
- https://github.com/dotnet/razor/find/main

Usually the most recent change to a file between the two branches is
considered to have introduced the conflicts, but sometimes it will be
necessary to look for the conflicting lines and check the blame in each
branch. Generally the author whose change introduced the conflicts
should pull down this PR, fix the conflicts locally, then push up a
commit resolving the conflicts.

### Resolve merge conflicts using your local repo
Sometimes merge conflicts may be present on GitHub but merging locally
will work without conflicts. This is due to differences between the
merge algorithm used in local git versus the one used by GitHub.
``` bash
git fetch --all
git checkout -t upstream/merges/release/dev17.11-to-main
git reset --hard upstream/main
git merge upstream/release/dev17.11
# Fix merge conflicts
git commit
git push upstream merges/release/dev17.11-to-main --force
```
2024-05-28 23:19:30 -07:00
Shen Chen 141c9f0eba
Update config files after snap 17.11 Preview 2 (#10418) 2024-05-28 21:47:36 -07:00
Shen Chen 3d16cb3fea
Snap 17.11 Preview 2 (#10417)
Bring 17.11 branch to
6ada92f5fc
2024-05-28 19:04:15 -07:00