Skip to content

[LSP] Add feature flag to enable LSP classifications in local scenarios#57291

Merged
allisonchou merged 6 commits intodotnet:release/dev17.1from
allisonchou:LocalClassificationToLSP
Oct 26, 2021
Merged

[LSP] Add feature flag to enable LSP classifications in local scenarios#57291
allisonchou merged 6 commits intodotnet:release/dev17.1from
allisonchou:LocalClassificationToLSP

Conversation

@allisonchou
Copy link
Copy Markdown
Contributor

This PR adds a new internal-only feature flag to enable LSP classifications in local scenarios. Everything seems to work as expected, although I'm unable to test multi-target framework scenarios due to this bug.

This PR should probably also go in around the same time as #57231 which improves the performance of the edit algorithm.

s/o to DavidB for the helpful advice on how to enable this!

@allisonchou allisonchou added Area-IDE LSP issues related to the roslyn language server protocol implementation labels Oct 21, 2021
@allisonchou allisonchou requested a review from a team as a code owner October 21, 2021 01:00
serverCapabilities.DisableGoToWorkspaceSymbols = !isLspEditorEnabled;

var isLspSemanticTokensEnabled = GlobalOptions.GetOption(LspOptions.LspSemanticTokensFeatureFlag);
if (isLspSemanticTokensEnabled)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

make sure that the liveshare server does not have this capability when enabled, otherwise both this and the liveshare server will attempt to provide semantic tokens

@allisonchou allisonchou changed the base branch from main to release/dev17.1 October 26, 2021 01:01
@allisonchou allisonchou enabled auto-merge (squash) October 26, 2021 09:27
@allisonchou allisonchou disabled auto-merge October 26, 2021 09:29
@allisonchou
Copy link
Copy Markdown
Contributor Author

@jinujoseph for m2 approval, the tests weren't passing on this so it missed the snap yesterday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved to merge 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.

4 participants