mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-30 11:37:31 +00:00
fix: Reload workspaces when cargo configs change
This commit is contained in:
parent
a31e10a2fd
commit
24b0666d93
3 changed files with 15 additions and 11 deletions
|
|
@ -20,15 +20,9 @@ export class Config {
|
|||
configureLang: vscode.Disposable | undefined;
|
||||
|
||||
readonly rootSection = "rust-analyzer";
|
||||
private readonly requiresServerReloadOpts = [
|
||||
"cargo",
|
||||
"procMacro",
|
||||
"serverPath",
|
||||
"server",
|
||||
"files",
|
||||
"cfg",
|
||||
"showSyntaxTree",
|
||||
].map((opt) => `${this.rootSection}.${opt}`);
|
||||
private readonly requiresServerReloadOpts = ["server", "files", "showSyntaxTree"].map(
|
||||
(opt) => `${this.rootSection}.${opt}`,
|
||||
);
|
||||
|
||||
private readonly requiresWindowReloadOpts = ["testExplorer"].map(
|
||||
(opt) => `${this.rootSection}.${opt}`,
|
||||
|
|
@ -208,7 +202,7 @@ export class Config {
|
|||
}
|
||||
|
||||
get serverPath() {
|
||||
return this.get<null | string>("server.path") ?? this.get<null | string>("serverPath");
|
||||
return this.get<null | string>("server.path");
|
||||
}
|
||||
|
||||
get serverExtraEnv(): Env {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue