You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in vscode/extensions/vscode-colorize-tests/package.json, change to "engines": { "vscode": "1.41.0" }
copy or link vscode/extensions/vscode-colorize-tests to ~/.vscode-insiders/extensions
run code-insiders --enable-proposed-api=vscode.vscode-colorize-tests
create files that end with semantic-test.json
Every string literal in that file is considered a token. The value of the string describes the token classification: classes.static.declaration means that the token describes a static class declaration.
The first segment is the token type, the rest are token modifiers.
The types and modifiers supported by this test extension are:
that you can style the tokens in the settings JSON: set foreground, or foreground and font styles.
use the * syntax to style all tokens with a/some modifier(s)
test that when multiple rules apply to a token, the styles are merged. In case of conflict (e.g. on foreground), the more matching rule segments will win, or, if equal, the last rule defined wins.
test that the settings schema helps with creating and verifying rules.
test that if there is no style rule defined, the default color matches the color the theme gives to that token. E.g. parameterTypes is not styled in settings.json, so it default to how parameters types are colored. (create a typescript code sample to verify)
Testing #77133
Complexity: 3
We have no language support yet, that implements the new semantic highlighting provider API, so this needs to be tested with a sample extension: https://github.com/microsoft/vscode/tree/master/extensions/vscode-colorize-tests
have your vscode repo on the latest and compiled
in
vscode/extensions/vscode-colorize-tests/package.json
, change to"engines": { "vscode": "1.41.0" }
copy or link
vscode/extensions/vscode-colorize-tests
to~/.vscode-insiders/extensions
run
code-insiders --enable-proposed-api=vscode.vscode-colorize-tests
create files that end with
semantic-test.json
Every string literal in that file is considered a token. The value of the string describes the token classification:
classes.static.declaration
means that the token describes a static class declaration.The first segment is the token type, the rest are token modifiers.
The types and modifiers supported by this test extension are:
In the settings you can define the rules how to style:
Valid font styles are:
italic
,underline
,bold
Test:
*
syntax to style all tokens with a/some modifier(s)The text was updated successfully, but these errors were encountered: