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

Switch to using VS Code Semantic Tokens API for colorization #4992

Closed
Colengms opened this issue Feb 20, 2020 · 0 comments
Closed

Switch to using VS Code Semantic Tokens API for colorization #4992

Colengms opened this issue Feb 20, 2020 · 0 comments
Assignees
Labels
Feature: Colorization fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Milestone

Comments

@Colengms
Copy link
Contributor

Colengms commented Feb 20, 2020

VS Code is implementing an API for Semantic Colorization. microsoft/vscode#86415

Opening this issue to switching to using that instead of our own semantic colorization implementation.

Proposed mappings from our tokens to VS Code tokens:

Token old TextMate Scope new Token Type standard/custom new Token Modifier Fallback
Class Template entity.name.type.class.templated templateType custom   type
Enumerator variable.other.enummember enumMember standard    
Event (C++/CLI) variable.other.event event standard   property
Function entity.name.function function standard    
Function Template entity.name.function.templated templateFunction custom   function
Generic Type (C++/CLI) entity.name.type.class.generic genericType custom   type
Global Variable variable.other.global variable standard global  
Label entity.name.label label standard    
Local Variable variable.other.local variable standard local  
Macro entity.name.function.preprocessor macro standard    
Member Field variable.other.property property standard    
Member Function entity.name.function.member member standard    
Namespace entity.name.namespace namespace standard    
New / Delete keyword.operator.new newOperator custom   operator
Operator Overload Function entity.name.function.operator operatorOverload custom   operator
Operator Overload Member entity.name.function.operator.member memberOperatorOverload custom   operator
Parameter variable.parameter parameter standard    
Property (C++/CLI) variable.other.property.cli cliProperty custom   property
Reference Type (C++/CLI) entity.name.type.class.reference referenceType custom   type
Static Member Field variable.other.property.static property standard static  
Static Member Function entity.name.function.member.static member standard static  
Type entity.name.type type standard    
User-Defined Literal - Number entity.name.operator.custom-literal.number numberLiteral custom   number
User-Defined Literal - Raw entity.name.operator.custom-literal customLiteral custom    
User-Defined Literal - String entity.name.operator.custom-literal.string stringLiteral custom   string
Value Type (C++/CLI) entity.name.type.class.value valueType custom   type
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature: Colorization fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
None yet
Development

No branches or pull requests

3 participants