-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Prefer semantic classifications over syntactic ones when both occur at the same location #72746
Prefer semantic classifications over syntactic ones when both occur at the same location #72746
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to the changes seen here, we need to fix the definitions in ClassificationTypeDefinitions.cs. Semantic classifications for identifiers, e.g. UserTypeClassesTypeDefinition
, need to have their BaseDefinition
set to either Identifier
or something derived from Identifier
. Otherwise, if you remove Identifier
from the classifications here, there will be no way for the system to know how to inherit colors if the semantic classification does not have a customized color set.
During a partial review, all of the references I have seen to PredefinedClassificationTypeNames.FormalLanguage
in that file are incorrect, except for possibly the overlay styles (reassigned variables, obsolete, and static symbols).
src/EditorFeatures/Core/Classification/TotalClassificationTaggerProvider.cs
Outdated
Show resolved
Hide resolved
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.