mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
update readme and screenshot
This commit is contained in:
@ -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)
|
||||
|
||||

|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 82 KiB |
Reference in New Issue
Block a user