aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/code/.vscodeignore1
-rw-r--r--editors/code/package-lock.json82
-rw-r--r--editors/code/package.json128
-rw-r--r--editors/code/src/main.ts2
4 files changed, 110 insertions, 103 deletions
diff --git a/editors/code/.vscodeignore b/editors/code/.vscodeignore
index 17c378a49..ac411f8e2 100644
--- a/editors/code/.vscodeignore
+++ b/editors/code/.vscodeignore
@@ -2,5 +2,6 @@
2!out/main.js 2!out/main.js
3!package.json 3!package.json
4!package-lock.json 4!package-lock.json
5!ra_syntax_tree.tmGrammar.json
5!icon.png 6!icon.png
6!README.md 7!README.md
diff --git a/editors/code/package-lock.json b/editors/code/package-lock.json
index 2d8b432a7..eb4f299a1 100644
--- a/editors/code/package-lock.json
+++ b/editors/code/package-lock.json
@@ -115,25 +115,25 @@
115 "dev": true 115 "dev": true
116 }, 116 },
117 "@typescript-eslint/eslint-plugin": { 117 "@typescript-eslint/eslint-plugin": {
118 "version": "2.26.0", 118 "version": "2.27.0",
119 "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.26.0.tgz", 119 "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.27.0.tgz",
120 "integrity": "sha512-4yUnLv40bzfzsXcTAtZyTjbiGUXMrcIJcIMioI22tSOyAxpdXiZ4r7YQUU8Jj6XXrLz9d5aMHPQf5JFR7h27Nw==", 120 "integrity": "sha512-/my+vVHRN7zYgcp0n4z5A6HAK7bvKGBiswaM5zIlOQczsxj/aiD7RcgD+dvVFuwFaGh5+kM7XA6Q6PN0bvb1tw==",
121 "dev": true, 121 "dev": true,
122 "requires": { 122 "requires": {
123 "@typescript-eslint/experimental-utils": "2.26.0", 123 "@typescript-eslint/experimental-utils": "2.27.0",
124 "functional-red-black-tree": "^1.0.1", 124 "functional-red-black-tree": "^1.0.1",
125 "regexpp": "^3.0.0", 125 "regexpp": "^3.0.0",
126 "tsutils": "^3.17.1" 126 "tsutils": "^3.17.1"
127 } 127 }
128 }, 128 },
129 "@typescript-eslint/experimental-utils": { 129 "@typescript-eslint/experimental-utils": {
130 "version": "2.26.0", 130 "version": "2.27.0",
131 "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.26.0.tgz", 131 "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.27.0.tgz",
132 "integrity": "sha512-RELVoH5EYd+JlGprEyojUv9HeKcZqF7nZUGSblyAw1FwOGNnmQIU8kxJ69fttQvEwCsX5D6ECJT8GTozxrDKVQ==", 132 "integrity": "sha512-vOsYzjwJlY6E0NJRXPTeCGqjv5OHgRU1kzxHKWJVPjDYGbPgLudBXjIlc+OD1hDBZ4l1DLbOc5VjofKahsu9Jw==",
133 "dev": true, 133 "dev": true,
134 "requires": { 134 "requires": {
135 "@types/json-schema": "^7.0.3", 135 "@types/json-schema": "^7.0.3",
136 "@typescript-eslint/typescript-estree": "2.26.0", 136 "@typescript-eslint/typescript-estree": "2.27.0",
137 "eslint-scope": "^5.0.0", 137 "eslint-scope": "^5.0.0",
138 "eslint-utils": "^2.0.0" 138 "eslint-utils": "^2.0.0"
139 }, 139 },
@@ -150,21 +150,21 @@
150 } 150 }
151 }, 151 },
152 "@typescript-eslint/parser": { 152 "@typescript-eslint/parser": {
153 "version": "2.26.0", 153 "version": "2.27.0",
154 "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.26.0.tgz", 154 "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.27.0.tgz",
155 "integrity": "sha512-+Xj5fucDtdKEVGSh9353wcnseMRkPpEAOY96EEenN7kJVrLqy/EVwtIh3mxcUz8lsFXW1mT5nN5vvEam/a5HiQ==", 155 "integrity": "sha512-HFUXZY+EdwrJXZo31DW4IS1ujQW3krzlRjBrFRrJcMDh0zCu107/nRfhk/uBasO8m0NVDbBF5WZKcIUMRO7vPg==",
156 "dev": true, 156 "dev": true,
157 "requires": { 157 "requires": {
158 "@types/eslint-visitor-keys": "^1.0.0", 158 "@types/eslint-visitor-keys": "^1.0.0",
159 "@typescript-eslint/experimental-utils": "2.26.0", 159 "@typescript-eslint/experimental-utils": "2.27.0",
160 "@typescript-eslint/typescript-estree": "2.26.0", 160 "@typescript-eslint/typescript-estree": "2.27.0",
161 "eslint-visitor-keys": "^1.1.0" 161 "eslint-visitor-keys": "^1.1.0"
162 } 162 }
163 }, 163 },
164 "@typescript-eslint/typescript-estree": { 164 "@typescript-eslint/typescript-estree": {
165 "version": "2.26.0", 165 "version": "2.27.0",
166 "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.26.0.tgz", 166 "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.27.0.tgz",
167 "integrity": "sha512-3x4SyZCLB4zsKsjuhxDLeVJN6W29VwBnYpCsZ7vIdPel9ZqLfIZJgJXO47MNUkurGpQuIBALdPQKtsSnWpE1Yg==", 167 "integrity": "sha512-t2miCCJIb/FU8yArjAvxllxbTiyNqaXJag7UOpB5DVoM3+xnjeOngtqlJkLRnMtzaRcJhe3CIR9RmL40omubhg==",
168 "dev": true, 168 "dev": true,
169 "requires": { 169 "requires": {
170 "debug": "^4.1.1", 170 "debug": "^4.1.1",
@@ -459,12 +459,6 @@
459 "integrity": "sha1-OjYof1A05pnnV3kBBSwubJQlFjE=", 459 "integrity": "sha1-OjYof1A05pnnV3kBBSwubJQlFjE=",
460 "dev": true 460 "dev": true
461 }, 461 },
462 "didyoumean": {
463 "version": "1.2.1",
464 "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.1.tgz",
465 "integrity": "sha1-6S7f2tplN9SE1zwBcv0eugxJdv8=",
466 "dev": true
467 },
468 "doctrine": { 462 "doctrine": {
469 "version": "3.0.0", 463 "version": "3.0.0",
470 "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 464 "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
@@ -1043,6 +1037,12 @@
1043 "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", 1037 "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz",
1044 "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" 1038 "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w=="
1045 }, 1039 },
1040 "leven": {
1041 "version": "3.1.0",
1042 "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
1043 "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==",
1044 "dev": true
1045 },
1046 "levn": { 1046 "levn": {
1047 "version": "0.3.0", 1047 "version": "0.3.0",
1048 "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", 1048 "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
@@ -1088,16 +1088,24 @@
1088 } 1088 }
1089 }, 1089 },
1090 "markdown-it": { 1090 "markdown-it": {
1091 "version": "8.4.2", 1091 "version": "10.0.0",
1092 "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-8.4.2.tgz", 1092 "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-10.0.0.tgz",
1093 "integrity": "sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==", 1093 "integrity": "sha512-YWOP1j7UbDNz+TumYP1kpwnP0aEa711cJjrAQrzd0UXlbJfc5aAq0F/PZHjiioqDC1NKgvIMX+o+9Bk7yuM2dg==",
1094 "dev": true, 1094 "dev": true,
1095 "requires": { 1095 "requires": {
1096 "argparse": "^1.0.7", 1096 "argparse": "^1.0.7",
1097 "entities": "~1.1.1", 1097 "entities": "~2.0.0",
1098 "linkify-it": "^2.0.0", 1098 "linkify-it": "^2.0.0",
1099 "mdurl": "^1.0.1", 1099 "mdurl": "^1.0.1",
1100 "uc.micro": "^1.0.5" 1100 "uc.micro": "^1.0.5"
1101 },
1102 "dependencies": {
1103 "entities": {
1104 "version": "2.0.0",
1105 "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz",
1106 "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==",
1107 "dev": true
1108 }
1101 } 1109 }
1102 }, 1110 },
1103 "mdurl": { 1111 "mdurl": {
@@ -1359,9 +1367,9 @@
1359 } 1367 }
1360 }, 1368 },
1361 "regexpp": { 1369 "regexpp": {
1362 "version": "3.0.0", 1370 "version": "3.1.0",
1363 "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.0.0.tgz", 1371 "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz",
1364 "integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g==", 1372 "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==",
1365 "dev": true 1373 "dev": true
1366 }, 1374 },
1367 "resolve": { 1375 "resolve": {
@@ -1399,9 +1407,9 @@
1399 } 1407 }
1400 }, 1408 },
1401 "rollup": { 1409 "rollup": {
1402 "version": "2.3.2", 1410 "version": "2.3.3",
1403 "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.3.2.tgz", 1411 "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.3.3.tgz",
1404 "integrity": "sha512-p66+fbfaUUOGE84sHXAOgfeaYQMslgAazoQMp//nlR519R61213EPFgrMZa48j31jNacJwexSAR1Q8V/BwGKBA==", 1412 "integrity": "sha512-uJ9VNWk80mb4wDCSfd1AyHoSc9TrWbkZtnO6wbsMTp9muSWkT26Dvc99MX1yGCOTvUN1Skw/KpFzKdUDuZKTXA==",
1405 "dev": true, 1413 "dev": true,
1406 "requires": { 1414 "requires": {
1407 "fsevents": "~2.1.2" 1415 "fsevents": "~2.1.2"
@@ -1723,9 +1731,9 @@
1723 "dev": true 1731 "dev": true
1724 }, 1732 },
1725 "vsce": { 1733 "vsce": {
1726 "version": "1.74.0", 1734 "version": "1.75.0",
1727 "resolved": "https://registry.npmjs.org/vsce/-/vsce-1.74.0.tgz", 1735 "resolved": "https://registry.npmjs.org/vsce/-/vsce-1.75.0.tgz",
1728 "integrity": "sha512-8zWM9bZBNn9my40kkxAxdY4nhb9ADfazXsyDgx1thbRaLPbmPTlmqQ55vCAyWYFEi6XbJv8w599vzVUqsU1gHg==", 1736 "integrity": "sha512-qyAQTmolxKWc9bV1z0yBTSH4WEIWhDueBJMKB0GUFD6lM4MiaU1zJ9BtzekUORZu094YeNSKz0RmVVuxfqPq0g==",
1729 "dev": true, 1737 "dev": true,
1730 "requires": { 1738 "requires": {
1731 "azure-devops-node-api": "^7.2.0", 1739 "azure-devops-node-api": "^7.2.0",
@@ -1733,10 +1741,10 @@
1733 "cheerio": "^1.0.0-rc.1", 1741 "cheerio": "^1.0.0-rc.1",
1734 "commander": "^2.8.1", 1742 "commander": "^2.8.1",
1735 "denodeify": "^1.2.1", 1743 "denodeify": "^1.2.1",
1736 "didyoumean": "^1.2.1",
1737 "glob": "^7.0.6", 1744 "glob": "^7.0.6",
1745 "leven": "^3.1.0",
1738 "lodash": "^4.17.15", 1746 "lodash": "^4.17.15",
1739 "markdown-it": "^8.3.1", 1747 "markdown-it": "^10.0.0",
1740 "mime": "^1.3.4", 1748 "mime": "^1.3.4",
1741 "minimatch": "^3.0.3", 1749 "minimatch": "^3.0.3",
1742 "osenv": "^0.1.3", 1750 "osenv": "^0.1.3",
diff --git a/editors/code/package.json b/editors/code/package.json
index 1f95cd130..94edc6eeb 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -42,14 +42,14 @@
42 "@types/node": "^12.12.34", 42 "@types/node": "^12.12.34",
43 "@types/node-fetch": "^2.5.5", 43 "@types/node-fetch": "^2.5.5",
44 "@types/vscode": "^1.43.0", 44 "@types/vscode": "^1.43.0",
45 "@typescript-eslint/eslint-plugin": "^2.26.0", 45 "@typescript-eslint/eslint-plugin": "^2.27.0",
46 "@typescript-eslint/parser": "^2.26.0", 46 "@typescript-eslint/parser": "^2.27.0",
47 "eslint": "^6.8.0", 47 "eslint": "^6.8.0",
48 "rollup": "^2.3.2", 48 "rollup": "^2.3.3",
49 "tslib": "^1.11.1", 49 "tslib": "^1.11.1",
50 "typescript": "^3.8.3", 50 "typescript": "^3.8.3",
51 "typescript-formatter": "^7.2.2", 51 "typescript-formatter": "^7.2.2",
52 "vsce": "^1.74.0" 52 "vsce": "^1.75.0"
53 }, 53 },
54 "activationEvents": [ 54 "activationEvents": [
55 "onLanguage:rust", 55 "onLanguage:rust",
@@ -211,10 +211,12 @@
211 }, 211 },
212 "rust-analyzer.notifications.workspaceLoaded": { 212 "rust-analyzer.notifications.workspaceLoaded": {
213 "type": "boolean", 213 "type": "boolean",
214 "default": true,
214 "markdownDescription": "Whether to show `workspace loaded` message." 215 "markdownDescription": "Whether to show `workspace loaded` message."
215 }, 216 },
216 "rust-analyzer.notifications.cargoTomlNotFound": { 217 "rust-analyzer.notifications.cargoTomlNotFound": {
217 "type": "boolean", 218 "type": "boolean",
219 "default": true,
218 "markdownDescription": "Whether to show `can't find Cargo.toml` error message" 220 "markdownDescription": "Whether to show `can't find Cargo.toml` error message"
219 }, 221 },
220 "rust-analyzer.cargo.noDefaultFeatures": { 222 "rust-analyzer.cargo.noDefaultFeatures": {
@@ -248,6 +250,18 @@
248 "default": [], 250 "default": [],
249 "description": "Additional arguments to rustfmt" 251 "description": "Additional arguments to rustfmt"
250 }, 252 },
253 "rust-analyzer.rustfmt.overrideCommand": {
254 "type": [
255 "null",
256 "array"
257 ],
258 "items": {
259 "type": "string",
260 "minItems": 1
261 },
262 "default": null,
263 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting."
264 },
251 "rust-analyzer.checkOnSave.enable": { 265 "rust-analyzer.checkOnSave.enable": {
252 "type": "boolean", 266 "type": "boolean",
253 "default": true, 267 "default": true,
@@ -266,6 +280,18 @@
266 "default": "check", 280 "default": "check",
267 "markdownDescription": "Cargo command to use for `cargo check`" 281 "markdownDescription": "Cargo command to use for `cargo check`"
268 }, 282 },
283 "rust-analyzer.checkOnSave.overrideCommand": {
284 "type": [
285 "null",
286 "array"
287 ],
288 "items": {
289 "type": "string",
290 "minItems": 1
291 },
292 "default": null,
293 "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option."
294 },
269 "rust-analyzer.checkOnSave.allTargets": { 295 "rust-analyzer.checkOnSave.allTargets": {
270 "type": "boolean", 296 "type": "boolean",
271 "default": true, 297 "default": true,
@@ -313,6 +339,7 @@
313 }, 339 },
314 "rust-analyzer.callInfo.full": { 340 "rust-analyzer.callInfo.full": {
315 "type": "boolean", 341 "type": "boolean",
342 "default": true,
316 "description": "Show function name and docs in parameter hints" 343 "description": "Show function name and docs in parameter hints"
317 }, 344 },
318 "rust-analyzer.highlighting.semanticTokens": { 345 "rust-analyzer.highlighting.semanticTokens": {
@@ -474,7 +501,8 @@
474 }, 501 },
475 { 502 {
476 "id": "builtinType", 503 "id": "builtinType",
477 "description": "Style for builtin types" 504 "description": "Style for builtin types",
505 "superType": "type"
478 }, 506 },
479 { 507 {
480 "id": "lifetime", 508 "id": "lifetime",
@@ -482,11 +510,13 @@
482 }, 510 },
483 { 511 {
484 "id": "typeAlias", 512 "id": "typeAlias",
485 "description": "Style for type aliases" 513 "description": "Style for type aliases",
514 "superType": "type"
486 }, 515 },
487 { 516 {
488 "id": "union", 517 "id": "union",
489 "description": "Style for C-style untagged unions" 518 "description": "Style for C-style untagged unions",
519 "superType": "type"
490 } 520 }
491 ], 521 ],
492 "semanticTokenModifiers": [ 522 "semanticTokenModifiers": [
@@ -495,7 +525,7 @@
495 "description": "Style for compile-time constants" 525 "description": "Style for compile-time constants"
496 }, 526 },
497 { 527 {
498 "id": "control", 528 "id": "controlFlow",
499 "description": "Style for control flow keywords" 529 "description": "Style for control flow keywords"
500 }, 530 },
501 { 531 {
@@ -507,65 +537,31 @@
507 "description": "Style for unsafe operations" 537 "description": "Style for unsafe operations"
508 } 538 }
509 ], 539 ],
510 "semanticTokenStyleDefaults": [ 540 "semanticTokenScopes": [
511 {
512 "selector": "attribute",
513 "scope": [
514 "meta.attribute"
515 ]
516 },
517 {
518 "selector": "builtinType",
519 "scope": [
520 "support.type.primitive"
521 ]
522 },
523 { 541 {
524 "selector": "lifetime", 542 "language": "rust",
525 "scope": [ 543 "scopes": {
526 "entity.name.lifetime.rust" 544 "attribute": [
527 ] 545 "meta.attribute"
528 }, 546 ],
529 { 547 "builtinType": [
530 "selector": "typeAlias", 548 "support.type.primitive"
531 "scope": [ 549 ],
532 "entity.name.typeAlias" 550 "lifetime": [
533 ] 551 "entity.name.lifetime.rust"
534 }, 552 ],
535 { 553 "typeAlias": [
536 "selector": "union", 554 "entity.name.typeAlias"
537 "scope": [ 555 ],
538 "entity.name.union" 556 "union": [
539 ] 557 "entity.name.union"
540 }, 558 ],
541 { 559 "keyword.unsafe": [
542 "selector": "keyword.unsafe", 560 "keyword.other.unsafe"
543 "scope": [ 561 ],
544 "keyword.other.unsafe" 562 "variable.constant": [
545 ] 563 "entity.name.constant"
546 }, 564 ]
547 {
548 "selector": "keyword.control",
549 "scope": [
550 "keyword.control"
551 ]
552 },
553 {
554 "selector": "variable.constant",
555 "scope": [
556 "entity.name.constant"
557 ]
558 },
559 {
560 "selector": "*.mutable",
561 "light": {
562 "fontStyle": "underline"
563 },
564 "dark": {
565 "fontStyle": "underline"
566 },
567 "highContrast": {
568 "fontStyle": "underline"
569 } 565 }
570 } 566 }
571 ] 567 ]
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index 4f3b89f44..efd56a84b 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -177,6 +177,8 @@ async function bootstrapServer(config: Config, state: PersistentState): Promise<
177 ); 177 );
178 } 178 }
179 179
180 log.debug("Using server binary at", path);
181
180 const res = spawnSync(path, ["--version"], { encoding: 'utf8' }); 182 const res = spawnSync(path, ["--version"], { encoding: 'utf8' });
181 log.debug("Checked binary availability via --version", res); 183 log.debug("Checked binary availability via --version", res);
182 log.debug(res, "--version output:", res.output); 184 log.debug(res, "--version output:", res.output);