about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2020-04-18 20:59:22 +0200
committerAleksey Kladov <aleksey.kladov@gmail.com>2020-04-18 21:28:51 +0200
commitca61356b01c8f0919443b3ccd5e543e06694466a (patch)
tree1d0f3ddc89d96d879ca5366928073ff9470ec9bc /editors/code
parent9b16ae5149b7b01c8b2ec4bfb87182c993997b44 (diff)
downloadrust-ca61356b01c8f0919443b3ccd5e543e06694466a.tar.gz
rust-ca61356b01c8f0919443b3ccd5e543e06694466a.zip
Add semantic tag for unresolved references
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.
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 5ce59e54a96..79410ad1094 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -517,6 +517,10 @@
                 "id": "union",
                 "description": "Style for C-style untagged unions",
                 "superType": "type"
+            },
+            {
+                "id": "unresolvedReference",
+                "description": "Style for names which can not be resolved due to compilation errors"
             }
         ],
         "semanticTokenModifiers": [