Skip to content

Conversation

@dibarbet
Copy link
Member

@dibarbet dibarbet commented Jun 7, 2019

Editor team wishes to start testing out LSP stuff with Roslyn. So push this to master so we can start work on that. Also will help make the overall insertion easier, won't have to handle both the new dependencies and liveshare switch in the same insertion.

The implementations are copied from liveshare. The additional work I did was adding tests and setting up the projects.
This only includes the pieces that don't have a UI dependency / other liveshare dependency. Those will be moved later on.

This will need cleanup - tracked in https://github.com/dotnet/roslyn/projects/45

TODO - Run val build

@dibarbet dibarbet changed the base branch from master to release/dev16.3-preview1 June 19, 2019 02:36
@dibarbet dibarbet closed this Jun 19, 2019
@dibarbet dibarbet reopened this Jun 19, 2019
@dibarbet dibarbet requested review from a team and heejaechang June 20, 2019 21:54
@dibarbet dibarbet marked this pull request as ready for review June 20, 2019 21:57
@dibarbet dibarbet requested review from a team as code owners June 20, 2019 21:57
@dibarbet dibarbet removed the request for review from a team June 24, 2019 06:28
@dibarbet
Copy link
Member Author

Val build is good
https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/188087
@heejaechang / @tmat whenever you have some time :)

Copy link
Contributor

@heejaechang heejaechang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry I thought I already signed off. code looks like same as what I saw before except live share handler part is split out

@dibarbet
Copy link
Member Author

@tmat did the changes to compare the JSON, looks better. Anything else you'd like me to look at?

[ExportLspMethod(Methods.TextDocumentDocumentHighlightName)]
internal class DocumentHighlightsHandler : IRequestHandler<TextDocumentPositionParams, DocumentHighlight[]>
{
public async Task<DocumentHighlight[]> HandleRequestAsync(Solution solution, TextDocumentPositionParams request,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DocumentHighlight[] [](start = 26, length = 19)

Any reason not to use ImmutableArray?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LSP package defines the types as array - https://devdiv.visualstudio.com/DevDiv/_git/VSExtensibility?path=%2Fsrc%2Fproduct%2FcommonLanguageServer%2FRemoteLanguage.Protocol%2FMethods.cs&version=GBdevelop&line=285&lineStyle=plain&lineEnd=286&lineStartColumn=1&lineEndColumn=1 I guess we would ask them why not immutable array.

Since liveshare is using the LSP package as well, it depends on them being the same type.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems unfortunate. Any idea why the package is not using ImmutableArray? @heejaechang

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tinaschrepfer might be able to offer some insight

@dibarbet
Copy link
Member Author

@tmat am I good to merge this one?

@dibarbet
Copy link
Member Author

@jinujoseph would you like me to attempt to squeeze this into 16.3p1, or wait until tomorrow and take it for 16.3p2?

@jinujoseph jinujoseph added this to the 16.3.P1 milestone Jun 26, 2019
@dibarbet dibarbet merged commit a16e4d2 into dotnet:release/dev16.3-preview1 Jun 26, 2019
@RikkiGibson
Copy link
Member

:shipit:

@dibarbet dibarbet deleted the only_lsp_merge branch July 2, 2019 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants