Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r--editors/code/src/config.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index da7c74c28b..c6d2bcc2b2 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -21,7 +21,6 @@ export class Config {
"serverPath",
"server",
"files",
- "lens", // works as lens.*
].map((opt) => `${this.rootSection}.${opt}`);
readonly package: {
@@ -70,7 +69,7 @@ export class Config {
if (!requiresReloadOpt) return;
if (this.restartServerOnConfigChange) {
- await vscode.commands.executeCommand("rust-analyzer.reload");
+ await vscode.commands.executeCommand("rust-analyzer.restartServer");
return;
}
@@ -78,7 +77,7 @@ export class Config {
const userResponse = await vscode.window.showInformationMessage(message, "Restart now");
if (userResponse) {
- const command = "rust-analyzer.reload";
+ const command = "rust-analyzer.restartServer";
await vscode.commands.executeCommand(command);
}
}
@@ -285,6 +284,10 @@ export class Config {
get useRustcErrorCode() {
return this.get<boolean>("diagnostics.useRustcErrorCode");
}
+
+ get showDependenciesExplorer() {
+ return this.get<boolean>("showDependenciesExplorer");
+ }
}
// the optional `cb?` parameter is meant to be used to add additional