-
Notifications
You must be signed in to change notification settings - Fork 783
upgraded to omnisharp 19 #1802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgraded to omnisharp 19 #1802
Conversation
@@ -106,7 +105,7 @@ public override void VisitObjectPropertySyntax(ObjectPropertySyntax syntax) | |||
} | |||
else | |||
{ | |||
AddTokenType(syntax.Key, SemanticTokenType.Member); | |||
AddTokenType(syntax.Key, SemanticTokenType.Method); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method [](start = 59, length = 6)
Member
was renamed to Method
.
// Licensed under the MIT License. | ||
using System; | ||
using OmniSharp.Extensions.LanguageServer.Protocol.Models; | ||
using Range = OmniSharp.Extensions.LanguageServer.Protocol.Models.Range; | ||
|
||
namespace Bicep.LanguageServer.Completions | ||
{ | ||
public static class CompletionItemBuilder | ||
public class CompletionItemBuilder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CompletionItemBuilder [](start = 17, length = 21)
CompletionItem
is now a record
, which is immutable.
=> new TextDocumentSaveRegistrationOptions | ||
{ | ||
DocumentSelector = DocumentSelectorFactory.Create(), | ||
IncludeText = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IncludeText [](start = 16, length = 11)
There doesn't appear to be an equivalent for IncludeText
, but nothing appears to be broken.
using Bicep.Core.Navigation; | ||
|
||
namespace Bicep.LangServer.IntegrationTests | ||
{ | ||
public static class IntegrationTestHelper | ||
{ | ||
private const int DefaultTimeout = 20000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
20000 [](start = 43, length = 5)
When running all the tests in parallel in VS, I would occasionally get a timeout that goes away on retry. Increased it to 20s from 10s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not applicable anymore.
@@ -72,7 +72,7 @@ public void DeclarationSnippetsShouldBeValid() | |||
foreach (var (detail, completion) in snippetsByDetail) | |||
{ | |||
// validate snippet | |||
var snippet = new Snippet(completion.TextEdit!.NewText); | |||
var snippet = new Snippet(completion.TextEdit!.TextEdit!.NewText); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TextEdit [](start = 63, length = 8)
This fun is due to the introduction of InsertReplaceTextEdit
. I haven't played with it yet, though.
bb10e29
to
f763508
Compare
Codecov Report
@@ Coverage Diff @@
## main #1802 +/- ##
==========================================
+ Coverage 95.30% 95.79% +0.49%
==========================================
Files 377 375 -2
Lines 22696 23130 +434
Branches 15 0 -15
==========================================
+ Hits 21630 22157 +527
+ Misses 1066 973 -93
Flags with carried forward coverage won't be shown. Click here to find out more.
|
c61a09a
to
b4737f1
Compare
92aa8f2
to
74c2323
Compare
Opened OmniSharp/csharp-language-server-protocol#556 on the OmniSharp repo. |
fc8b0ca
to
74ef2fa
Compare
54fdb79
to
31c8b46
Compare
31c8b46
to
9b4eade
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgraded the language server and test projects to use OmniSharp 19. This brings full support of LSP 3.16, including the semantic token legend, which should allow more control over syntax highlighting via semantic tokens.
OmniSharp release notes: https://github.com/OmniSharp/csharp-language-server-protocol/releases/tag/v0.19.0