Skip to content

Use ISpanMapper before sending cross file results to LSP#46078

Merged
dibarbet merged 2 commits intodotnet:masterfrom
dibarbet:razor_lsp_mapping
Jul 17, 2020
Merged

Use ISpanMapper before sending cross file results to LSP#46078
dibarbet merged 2 commits intodotnet:masterfrom
dibarbet:razor_lsp_mapping

Conversation

@dibarbet
Copy link
Member

Razor is not able to intercept cross file requests made from the LSP client to C# files (these results could contain references to types in a razor file). So for cloud environments, we need to return the mapped paths to the LSP client so that these results can be displayed and navigated to.

This modifies the conversion helpers to map paths before converting to the LSP type and adds some tests.

Resolves #45063 for cloud environments (except rename).

@dibarbet dibarbet added Area-IDE LSP issues related to the roslyn language server protocol implementation labels Jul 17, 2020
@dibarbet dibarbet added this to the 16.8.P1 milestone Jul 17, 2020
@dibarbet dibarbet requested a review from jasonmalinowski July 17, 2020 03:49
@dibarbet dibarbet requested a review from a team as a code owner July 17, 2020 03:49
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the main change

@dibarbet dibarbet force-pushed the razor_lsp_mapping branch from aa31872 to 0c4ed8c Compare July 17, 2020 04:58
…UsagesServiceHandler.cs

Co-authored-by: Joey Robichaud <joseph.robichaud@microsoft.com>
@dibarbet dibarbet merged commit f14fd53 into dotnet:master Jul 17, 2020
@ghost ghost modified the milestones: 16.8.P1, Next Jul 17, 2020
@dibarbet dibarbet deleted the razor_lsp_mapping branch July 17, 2020 21:07
@JoeRobich JoeRobich modified the milestones: Next, 16.8.P1 Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE LSP issues related to the roslyn language server protocol implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ISpanMappingService for GoTo Definition/Implementation and rename requests

2 participants