diff options
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/.vscodeignore | 1 | ||||
-rw-r--r-- | editors/code/package.json | 14 | ||||
-rw-r--r-- | editors/code/src/main.ts | 2 |
3 files changed, 14 insertions, 3 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.json b/editors/code/package.json index 88b7ee86a..f0d5127d4 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -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": { |
@@ -253,6 +255,7 @@ | |||
253 | "items": { | 255 | "items": { |
254 | "type": "string" | 256 | "type": "string" |
255 | }, | 257 | }, |
258 | "default": [], | ||
256 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting." | 259 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting." |
257 | }, | 260 | }, |
258 | "rust-analyzer.checkOnSave.enable": { | 261 | "rust-analyzer.checkOnSave.enable": { |
@@ -278,6 +281,7 @@ | |||
278 | "items": { | 281 | "items": { |
279 | "type": "string" | 282 | "type": "string" |
280 | }, | 283 | }, |
284 | "default": [], | ||
281 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option." | 285 | "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option." |
282 | }, | 286 | }, |
283 | "rust-analyzer.checkOnSave.allTargets": { | 287 | "rust-analyzer.checkOnSave.allTargets": { |
@@ -327,6 +331,7 @@ | |||
327 | }, | 331 | }, |
328 | "rust-analyzer.callInfo.full": { | 332 | "rust-analyzer.callInfo.full": { |
329 | "type": "boolean", | 333 | "type": "boolean", |
334 | "default": true, | ||
330 | "description": "Show function name and docs in parameter hints" | 335 | "description": "Show function name and docs in parameter hints" |
331 | }, | 336 | }, |
332 | "rust-analyzer.highlighting.semanticTokens": { | 337 | "rust-analyzer.highlighting.semanticTokens": { |
@@ -488,7 +493,8 @@ | |||
488 | }, | 493 | }, |
489 | { | 494 | { |
490 | "id": "builtinType", | 495 | "id": "builtinType", |
491 | "description": "Style for builtin types" | 496 | "description": "Style for builtin types", |
497 | "superType": "type" | ||
492 | }, | 498 | }, |
493 | { | 499 | { |
494 | "id": "lifetime", | 500 | "id": "lifetime", |
@@ -496,11 +502,13 @@ | |||
496 | }, | 502 | }, |
497 | { | 503 | { |
498 | "id": "typeAlias", | 504 | "id": "typeAlias", |
499 | "description": "Style for type aliases" | 505 | "description": "Style for type aliases", |
506 | "superType": "type" | ||
500 | }, | 507 | }, |
501 | { | 508 | { |
502 | "id": "union", | 509 | "id": "union", |
503 | "description": "Style for C-style untagged unions" | 510 | "description": "Style for C-style untagged unions", |
511 | "superType": "type" | ||
504 | } | 512 | } |
505 | ], | 513 | ], |
506 | "semanticTokenModifiers": [ | 514 | "semanticTokenModifiers": [ |
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); |