Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Semantic token types #84

Merged
merged 1 commit into from Apr 16, 2023

Conversation

tcx4c70
Copy link
Contributor

@tcx4c70 tcx4c70 commented Apr 16, 2023

  1. Add the following missing ClassificationTypeNames -> semantic token maps:
    1. Identifier: variable
    2. VerbatimStringLiteral: string
  2. Fix the following ClassificationTypeNames -> semantic token map since there is no related semantic token:
    1. LabelName: label -> variable

Now ClassificationTypeMap should cover all possible return values of Microsoft.CodeAnalysis.CSharp.Classification.ClassificationHelpers.GetClassification.

1. Add the following missing ClassificationTypeNames -> semantic token
   maps:
   1. Identifier: variable
   2. VerbatimStringLiteral: string
2. Fix the following ClassificationTypeNames -> semantic token map since
   there is no related semantic token:
   1. LabelName: label -> variable

Now `ClassificationTypeMap` should cover all possible return values of
[Microsoft.CodeAnalysis.CSharp.Classification.ClassificationHelpers.GetClassification](https://github.com/dotnet/roslyn/blob/main/src/Workspaces/CSharp/Portable/Classification/ClassificationHelpers.cs).

Signed-off-by: Adam Tao <tcx4c70@gmail.com>
@razzmatazz
Copy link
Owner

razzmatazz commented Apr 16, 2023

LGTM! Thanks!

@razzmatazz razzmatazz merged commit 2808705 into razzmatazz:master Apr 16, 2023
2 checks passed
@tcx4c70 tcx4c70 deleted the fix/semantic-token branch April 22, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants