From 9ca69994af24e677f08f03180632215f9494e4fc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 2 Apr 2020 15:52:25 +0200 Subject: Fix semantic coloring --- editors/code/package.json | 85 +++++++++++++++-------------------------------- 1 file changed, 27 insertions(+), 58 deletions(-) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 9c8cca615..14bdec8c2 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -521,65 +521,34 @@ "description": "Style for unsafe operations" } ], - "semanticTokenStyleDefaults": [ + "semanticTokenScopes": [ { - "selector": "attribute", - "scope": [ - "meta.attribute" - ] - }, - { - "selector": "builtinType", - "scope": [ - "support.type.primitive" - ] - }, - { - "selector": "lifetime", - "scope": [ - "entity.name.lifetime.rust" - ] - }, - { - "selector": "typeAlias", - "scope": [ - "entity.name.typeAlias" - ] - }, - { - "selector": "union", - "scope": [ - "entity.name.union" - ] - }, - { - "selector": "keyword.unsafe", - "scope": [ - "keyword.other.unsafe" - ] - }, - { - "selector": "keyword.control", - "scope": [ - "keyword.control" - ] - }, - { - "selector": "variable.constant", - "scope": [ - "entity.name.constant" - ] - }, - { - "selector": "*.mutable", - "light": { - "fontStyle": "underline" - }, - "dark": { - "fontStyle": "underline" - }, - "highContrast": { - "fontStyle": "underline" + "language": "rust", + "scopes": { + "attribute": [ + "meta.attribute" + ], + "builtinType": [ + "support.type.primitive" + ], + "lifetime": [ + "entity.name.lifetime.rust" + ], + "typeAlias": [ + "entity.name.typeAlias" + ], + "union": [ + "entity.name.union" + ], + "keyword.unsafe": [ + "keyword.other.unsafe" + ], + "keyword.control": [ + "keyword.control" + ], + "variable.constant": [ + "entity.name.constant" + ] } } ] -- cgit v1.2.3