Skip to content

[LSP] Remove semantic tokens IsFinalized logic#60993

Merged
allisonchou merged 1 commit intodotnet:release/dev17.3from
allisonchou:RemoveIsFinalizedLogic2
Apr 28, 2022
Merged

[LSP] Remove semantic tokens IsFinalized logic#60993
allisonchou merged 1 commit intodotnet:release/dev17.3from
allisonchou:RemoveIsFinalizedLogic2

Conversation

@allisonchou
Copy link
Copy Markdown
Contributor

Since Razor switched over to workspace/semanticTokens/refresh messages this sprint, IsFinalized should no longer be necessary since we'll send a refresh notification when the compilations are available.

@allisonchou allisonchou requested a review from a team as a code owner April 27, 2022 19:55
@ghost ghost added the Area-IDE label Apr 27, 2022
@allisonchou allisonchou added LSP issues related to the roslyn language server protocol implementation and removed Area-IDE labels Apr 27, 2022
Copy link
Copy Markdown
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

Looks fine, assuming it is paired with #60991

{
// If the project's compilation isn't yet available, kick off a task in the background to
// hopefully make it available faster since we'll need it later to compute tokens.
var newCompilationTask = project.GetCompilationAsync(cancellationToken);
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.

I assume we need this as well
#60991

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Actually, I don't think we need the linked PR. Razor already removed caching and the isFinalized logic from their end, so keeping it wouldn't have any effect

@allisonchou allisonchou merged commit b1ee655 into dotnet:release/dev17.3 Apr 28, 2022
@allisonchou allisonchou deleted the RemoveIsFinalizedLogic2 branch April 28, 2022 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved to merge LSP issues related to the roslyn language server protocol implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants