Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update examples in colorization.md to color entity.name.type instead of entity.name.type.class#3973

Merged
Colengms merged 3 commits into
mastermicrosoft/vscode-cpptools:masterfrom
coleng/updateColorizationDoc2microsoft/vscode-cpptools:coleng/updateColorizationDoc2Copy head branch name to clipboard
Jul 25, 2019
Merged

Update examples in colorization.md to color entity.name.type instead of entity.name.type.class#3973
Colengms merged 3 commits into
mastermicrosoft/vscode-cpptools:masterfrom
coleng/updateColorizationDoc2microsoft/vscode-cpptools:coleng/updateColorizationDoc2Copy head branch name to clipboard

Conversation

@Colengms

Copy link
Copy Markdown
Contributor

This change restores the scope associated with the Type token to entity.name.type, in documentation (colorization.md) only.

This is essentially a mitagation of differences between TextMate and IntelliSense behavior. TextMate uses different tokens where a type is declared vs used, and has granular class types (unions, structs, etc), whereas IntelliSense considers declation, use, and all types, as the same Type token type. If we guide the user to color entity.name.type.class, in other languages they will see it only where classes are declared and not where they are used, whereas in C/C++ it will be used for all cases. Coloring entity.name.type will apply the color to all types in other languages, which is consistent with what they will see in C/C++.

@Colengms Colengms merged commit d9de95c into master Jul 25, 2019
@Colengms Colengms deleted the coleng/updateColorizationDoc2 branch July 25, 2019 00:10
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.