diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-18 20:29:17 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-18 20:29:17 +0100 |
commit | b95b77f92f4ce73b3c9cc652ac9ae40580d308ce (patch) | |
tree | 6c787717309197eb3ace59f51d9e1912d3cf0cb3 /editors | |
parent | b949500126f6bd3723d22541adb2f7c8aae206a4 (diff) | |
parent | ca61356b01c8f0919443b3ccd5e543e06694466a (diff) |
Merge #4034
4034: Add semantic tag for unresolved references r=matklad a=matklad
This is a quick way to implement unresolved reference diagnostics.
For example, adding to VS Code config
"editor.tokenColorCustomizationsExperimental": {
"unresolvedReference": "#FF0000"
},
will highlight all unresolved refs in red.
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/package.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 5ce59e54a..79410ad10 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -517,6 +517,10 @@ | |||
517 | "id": "union", | 517 | "id": "union", |
518 | "description": "Style for C-style untagged unions", | 518 | "description": "Style for C-style untagged unions", |
519 | "superType": "type" | 519 | "superType": "type" |
520 | }, | ||
521 | { | ||
522 | "id": "unresolvedReference", | ||
523 | "description": "Style for names which can not be resolved due to compilation errors" | ||
520 | } | 524 | } |
521 | ], | 525 | ], |
522 | "semanticTokenModifiers": [ | 526 | "semanticTokenModifiers": [ |