Skip to content

[LSP] Null check semantic tokens workspace capability#61047

Merged
allisonchou merged 1 commit intodotnet:mainfrom
allisonchou:Fix172Exception
Apr 29, 2022
Merged

[LSP] Null check semantic tokens workspace capability#61047
allisonchou merged 1 commit intodotnet:mainfrom
allisonchou:Fix172Exception

Conversation

@allisonchou
Copy link
Copy Markdown
Contributor

The client didn't implement this capability until 17.3 so the SemanticTokens workspace capability returns null in 17.2 and prior. This breaks F5'ing in Roslyn for external contributors.

I think this simple fix should do the trick, currently installing latest preview to confirm.

@allisonchou allisonchou requested a review from a team as a code owner April 29, 2022 18:36
@ghost ghost added the Area-IDE label Apr 29, 2022
@allisonchou allisonchou merged commit 676b186 into dotnet:main Apr 29, 2022
@allisonchou allisonchou deleted the Fix172Exception branch April 29, 2022 20:17
@ghost ghost added this to the Next milestone Apr 29, 2022
@jasonmalinowski
Copy link
Copy Markdown
Member

@allisonchou: thanks for the fix! Is there a bug on the platform here that the capabilities property isn't annotated as nullable? It seems like everything there should be, right, since that's how capabilities would generally work?

@allisonchou
Copy link
Copy Markdown
Contributor Author

@jasonmalinowski Yep you're right, it looks like the other capabilities are marked as nullable. Just filed an issue - https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1533478

@Cosifne Cosifne modified the milestones: Next, 17.3 P2 May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants