diff --git a/semantic-tokens-sample/README.md b/semantic-tokens-sample/README.md index 7576d44b..35b1e114 100644 --- a/semantic-tokens-sample/README.md +++ b/semantic-tokens-sample/README.md @@ -2,7 +2,7 @@ This is an extension sample showing a very simple semantic tokens provider. This semantic tokens provider always returns all the tokens in a file. -For more background on semantic highlighting read [here](https://github.com/microsoft/vscode/wiki/Semantic-Highlighting-Overview) +For more background on semantic highlighting read [here](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide) ![Screenshot](demo.png) @@ -11,13 +11,16 @@ For more background on semantic highlighting read [here](https://github.com/micr Launch the extension and open the file `sample/sample.semanticLanguage` and use the following settings: ```json -"editor.tokenColorCustomizationsExperimental": { - "*.static": { - "foreground": "#ff0000", - "fontStyle": "bold" - }, - "type": { - "foreground": "#00aa00" +"editor.semanticTokenColorCustomizations": { + "enabled": true, // enable for all themes + "rules": { + "*.static": { + "foreground": "#ff0000", + "fontStyle": "bold" + }, + "type": { + "foreground": "#00aa00" + } } } ``` diff --git a/semantic-tokens-sample/demo.png b/semantic-tokens-sample/demo.png index 796bc487..e6b95e71 100644 Binary files a/semantic-tokens-sample/demo.png and b/semantic-tokens-sample/demo.png differ