diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 52 |
1 files changed, 49 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 9ef6c6983..ad1101603 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -18,6 +18,7 @@ | |||
18 | "engines": { | 18 | "engines": { |
19 | "vscode": "^1.42.0" | 19 | "vscode": "^1.42.0" |
20 | }, | 20 | }, |
21 | "enableProposedApi": true, | ||
21 | "scripts": { | 22 | "scripts": { |
22 | "vscode:prepublish": "tsc && rollup -c", | 23 | "vscode:prepublish": "tsc && rollup -c", |
23 | "package": "vsce package -o rust-analyzer.vsix", | 24 | "package": "vsce package -o rust-analyzer.vsix", |
@@ -27,7 +28,6 @@ | |||
27 | "dependencies": { | 28 | "dependencies": { |
28 | "jsonc-parser": "^2.1.0", | 29 | "jsonc-parser": "^2.1.0", |
29 | "node-fetch": "^2.6.0", | 30 | "node-fetch": "^2.6.0", |
30 | "throttle-debounce": "^2.1.0", | ||
31 | "vscode-languageclient": "^6.1.1" | 31 | "vscode-languageclient": "^6.1.1" |
32 | }, | 32 | }, |
33 | "devDependencies": { | 33 | "devDependencies": { |
@@ -35,14 +35,13 @@ | |||
35 | "@rollup/plugin-node-resolve": "^7.1.1", | 35 | "@rollup/plugin-node-resolve": "^7.1.1", |
36 | "@types/node": "^12.12.27", | 36 | "@types/node": "^12.12.27", |
37 | "@types/node-fetch": "^2.5.4", | 37 | "@types/node-fetch": "^2.5.4", |
38 | "@types/throttle-debounce": "^2.1.0", | ||
39 | "@types/vscode": "^1.42.0", | 38 | "@types/vscode": "^1.42.0", |
40 | "@typescript-eslint/eslint-plugin": "^2.20.0", | 39 | "@typescript-eslint/eslint-plugin": "^2.20.0", |
41 | "@typescript-eslint/parser": "^2.20.0", | 40 | "@typescript-eslint/parser": "^2.20.0", |
42 | "eslint": "^6.8.0", | 41 | "eslint": "^6.8.0", |
43 | "rollup": "^1.31.1", | 42 | "rollup": "^1.31.1", |
44 | "tslib": "^1.10.0", | 43 | "tslib": "^1.10.0", |
45 | "typescript": "^3.7.5", | 44 | "typescript": "^3.8.2", |
46 | "typescript-formatter": "^7.2.2", | 45 | "typescript-formatter": "^7.2.2", |
47 | "vsce": "^1.73.0" | 46 | "vsce": "^1.73.0" |
48 | }, | 47 | }, |
@@ -169,6 +168,11 @@ | |||
169 | "type": "object", | 168 | "type": "object", |
170 | "title": "Rust Analyzer", | 169 | "title": "Rust Analyzer", |
171 | "properties": { | 170 | "properties": { |
171 | "rust-analyzer.highlighting.semanticTokens": { | ||
172 | "type": "boolean", | ||
173 | "default": false, | ||
174 | "description": "Use proposed semantic tokens API for syntax highlighting" | ||
175 | }, | ||
172 | "rust-analyzer.highlightingOn": { | 176 | "rust-analyzer.highlightingOn": { |
173 | "type": "boolean", | 177 | "type": "boolean", |
174 | "default": false, | 178 | "default": false, |
@@ -375,6 +379,48 @@ | |||
375 | "highContrast": "#BEBEBE" | 379 | "highContrast": "#BEBEBE" |
376 | } | 380 | } |
377 | } | 381 | } |
382 | ], | ||
383 | "semanticTokenTypes": [ | ||
384 | { | ||
385 | "id": "attribute" | ||
386 | }, | ||
387 | { | ||
388 | "id": "constant" | ||
389 | } | ||
390 | ], | ||
391 | "semanticTokenModifiers": [ | ||
392 | { | ||
393 | "id": "mutable" | ||
394 | }, | ||
395 | { | ||
396 | "id": "unsafe" | ||
397 | }, | ||
398 | { | ||
399 | "id": "control" | ||
400 | }, | ||
401 | { | ||
402 | "id": "builtin" | ||
403 | } | ||
404 | ], | ||
405 | "semanticTokenStyleDefaults": [ | ||
406 | { | ||
407 | "selector": "*.mutable", | ||
408 | "light": { | ||
409 | "fontStyle": "underline" | ||
410 | }, | ||
411 | "dark": { | ||
412 | "fontStyle": "underline" | ||
413 | }, | ||
414 | "highContrast": { | ||
415 | "fontStyle": "underline" | ||
416 | } | ||
417 | }, | ||
418 | { | ||
419 | "selector": "constant", | ||
420 | "scope": [ | ||
421 | "entity.name.constant" | ||
422 | ] | ||
423 | } | ||
378 | ] | 424 | ] |
379 | } | 425 | } |
380 | } | 426 | } |