You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- With the latest OmniSharp upgrade there were a few high profile changes:
- Most DTO's are records now which makes them immutable. You'll see throughout the codebase that we now have to use `with {...}` to translate one type to another.
- `ServerCapabilities` are expandable by default. This means we no longer need our `ExtendableServerCapabilities` type.
- Getting client and server capabilities in each of our endpoints are now a single method call. This resulted in lots of deleted code.
- O# upgraded its LSP version to 3.17 which means semantic tokens are no longer proposed. This resulted in a lot of warnings/obsolete bits getting removed. We now also have code action resolution as part of this upgrade so we could remove our old code action resolution endpoint (it's in VSCode now too).
- The way the O# serializer gets construed now is different and extendable. Because of this we now have a primary method to add all of our converters to an O# serializer.
- O# embraced the optional vs. required text document identifiers. This makes it super clear whenever we're expected to provided a document version or not. Probably one of my favorite changes in the upgrade.
- A new dependency of `System.Threading.Channels` was introduced so we had to make sure that was included in our VS scenarios.
- This changeset is in preparation for another O# release where we'll replace the [O# request invoker](OmniSharp/csharp-language-server-protocol#641) to get some pretty massive perf wins!
Fixes dotnet/aspnetcore#35622
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer.Common/Serialization/JsonConverterCollectionExtensions.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ internal static class JsonConverterCollectionExtensions
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/CodeActions/CSharp/AddUsingsCSharpCodeActionResolver.cs
+3-2
Original file line number
Diff line number
Diff line change
@@ -115,13 +115,14 @@ public async override Task<CodeAction> ResolveAsync(
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/CodeActions/CSharp/DefaultCSharpCodeActionResolver.cs
+12-11
Original file line number
Diff line number
Diff line change
@@ -140,22 +140,23 @@ public async override Task<CodeAction> ResolveAsync(
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/CodeActions/CSharp/TypeAccessibilityCodeActionProvider.cs
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/CodeActions/CSharp/UnformattedRemappingCSharpCodeActionResolver.cs
+8-6
Original file line number
Diff line number
Diff line change
@@ -111,25 +111,27 @@ public async override Task<CodeAction> ResolveAsync(
Copy file name to clipboardExpand all lines: src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/CodeActions/Models/OmniSharpVSCodeActionContext.cs
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,17 @@
1
1
// Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the MIT license. See License.txt in the project root for license information.
0 commit comments