Files
vscode-extension-samples/semantic-tokens-sample
Matt Bierner 3ca4acdff2 Bump extensions to TS 5.1
Picks up TS 5.1.3 for building extensions

Also bumps `@types/node` to resolve typings conflicts with new TS version
2023-06-05 14:34:14 -07:00
..
2020-05-29 14:20:07 -07:00
2022-11-04 14:27:02 -07:00
2020-05-29 14:13:32 -07:00
2019-12-09 15:39:21 +01:00
2019-12-09 15:39:21 +01:00
2020-05-01 17:16:40 +02:00
2023-06-05 14:34:14 -07:00
2023-06-05 14:34:14 -07:00
2021-07-10 12:02:11 +07:00
2022-02-28 13:45:21 -08:00

Semantic tokens sample

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

Screenshot

How to run

Launch the extension and open the file sample/sample.semanticLanguage and use the following settings:

"editor.semanticTokenColorCustomizations": {
	"enabled": true, // enable for all themes
	"rules": {
		"*.static": {
			"foreground": "#ff0000",
			"fontStyle": "bold"
		},
		"type": {
			"foreground": "#00aa00"
		}
	}
}