mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Change existing OUT_DIR override config to make use of new infrastructure
This commit is contained in:
parent
33c6c7abc6
commit
f5a2fcf8f5
8 changed files with 26 additions and 57 deletions
|
@ -23,6 +23,7 @@ export interface CargoFeatures {
|
|||
allFeatures: boolean;
|
||||
features: string[];
|
||||
loadOutDirsFromCheck: boolean;
|
||||
outDirOverrides: Record<string, string>;
|
||||
}
|
||||
|
||||
export const enum UpdatesChannel {
|
||||
|
@ -203,7 +204,6 @@ export class Config {
|
|||
get excludeGlobs() { return this.cfg.get("excludeGlobs") as string[]; }
|
||||
get useClientWatching() { return this.cfg.get("useClientWatching") as boolean; }
|
||||
get featureFlags() { return this.cfg.get("featureFlags") as Record<string, boolean>; }
|
||||
get additionalOutDirs() { return this.cfg.get("additionalOutDirs") as Record<string, string>; }
|
||||
get rustfmtArgs() { return this.cfg.get("rustfmtArgs") as string[]; }
|
||||
get loadOutDirsFromCheck() { return this.cfg.get("loadOutDirsFromCheck") as boolean; }
|
||||
|
||||
|
@ -222,6 +222,7 @@ export class Config {
|
|||
allFeatures: this.cfg.get("cargoFeatures.allFeatures") as boolean,
|
||||
features: this.cfg.get("cargoFeatures.features") as string[],
|
||||
loadOutDirsFromCheck: this.cfg.get("cargoFeatures.loadOutDirsFromCheck") as boolean,
|
||||
outDirOverrides: this.cfg.get("cargoFeatures.outDirOverrides") as Record<string, string>,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue