diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/package.json | 5 | ||||
-rw-r--r-- | editors/code/src/main.ts | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 595d6e378..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": { |
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); |