-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Features/lsp support liveshare2 #35214
Features/lsp support liveshare2 #35214
Conversation
67fb44c
to
d252a1a
Compare
src/Features/LanguageServer/Protocol/CustomProtocol/RoslynCompletionItem.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Extensions/ProtocolConversions.cs
Outdated
Show resolved
Hide resolved
/// Handles the get code actions command. | ||
/// </summary> | ||
[Shared] | ||
[ExportLspMethod(LSP.Methods.TextDocumentCodeActionName)] |
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.
name for export and interface, we probably need to change later after design meeting.
src/Features/LanguageServer/Protocol/Handler/CodeActions/CodeActionsHandler.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/CodeActions/CodeActionsHandler.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/CodeActions/CodeActionsHandlerBase.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/CodeActions/CodeActionsHandlerBase.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/CodeActions/PreviewCodeActionsHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/CodeActions/PreviewCodeActionsHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Completion/CompletionHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Completion/CompletionResolveHandler.cs
Show resolved
Hide resolved
var description = await completionService.GetDescriptionAsync(document, selectedItem, cancellationToken).ConfigureAwait(false); | ||
|
||
LSP.CompletionItem resolvedCompletionItem; | ||
if (clientCapabilities?.HasVisualStudioLspCapability() == 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.
so, this without VS extension (I think we should rename it LSP.Extension not VS Extension) we return RoslynCompletionItem? not regular LSP completion Item?
src/Features/LanguageServer/Protocol/Handler/Completion/CompletionResolveHandler.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Completion/CompletionResolveHandler.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Definitions/GoToDefinitionHandlerBase.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Definitions/GoToDefinitionHandlerBase.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/FoldingRanges/FoldingRangesHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Formatting/FormatDocumentOnTypeHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Formatting/FormatDocumentOnTypeHandler.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Formatting/FormatDocumentOnTypeHandler.cs
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Formatting/FormatDocumentRangeHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Formatting/FormatDocumentRangeHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/IRequestHandlerMetadata.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Initialize/InitializeHandler.cs
Outdated
Show resolved
Hide resolved
e561eb8
to
0129409
Compare
3a3460e
to
e42a4b0
Compare
… liveshare handlers.
… item in the client.
…th dynamic usage on internal types.
e42a4b0
to
908819f
Compare
This copies and creates liveshare LSP handlers so that they can be exported from roslyn instead of from liveshare.
The implementation of all the handlers is copied directly from liveshare. For now, I'll be leaving that as-is and later will be going 1 by 1 to clean them all up once liveshare is working from roslyn. Mainly would like feedback on the structure (handlers, location of classes, etc)
Where possible, I've moved the implementation into the features layer. However, some have dependencies on the UI, so I've kept those in the VS language services layer until we can remove those dependencies.
TODO - more testsTODO - get actual release build of MS.VS.LanguageServer.Protocol (so CI passes)TODO - Wait for fixed liveshare nuget pkg