-
Notifications
You must be signed in to change notification settings - Fork 420
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
Support inlay hints #2357
Support inlay hints #2357
Conversation
I've based the O# api on the proposed inlay hint LSP api, https://github.com/microsoft/vscode-languageserver-node/blob/main/protocol/src/common/protocol.inlayHint.ts, which is pretty much stable now and 3.17 should be out shortly with this shape. I've also done a couple of refactors while touching code: * Update to C# 10. * Add some additional assert utils from roslyn, to make test results more readable and actionable. * Add an interpolated string handler for logging, so that interpolated strings can be used in logging without a perf penalty when they're uneeded.
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.
Looks good to me
src/OmniSharp.Abstractions/Models/v1/InlayHints/InlayHintRequest.cs
Outdated
Show resolved
Hide resolved
return request.Hint; | ||
} | ||
|
||
var descriptionTags = await roslynHint.GetDescrptionAsync(document, CancellationToken.None); |
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.
Opened dotnet/roslyn#60217 for this typo
…ce.cs Co-authored-by: Joey Robichaud <[email protected]>
…st.cs Co-authored-by: Joey Robichaud <[email protected]>
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.
very cool
I need to adjust one test to account for platform differences ( |
I've based the O# api on the proposed inlay hint LSP api, https://github.com/microsoft/vscode-languageserver-node/blob/main/protocol/src/common/protocol.inlayHint.ts, which is pretty much stable now and 3.17 should be out shortly with this shape. I've also done a couple of refactors while touching code: