mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Allow disabling sysroot
Might be helpful for debugging
This commit is contained in:
parent
442ab3a34d
commit
7ac4ea7fec
2 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,8 @@ export class Config {
|
|||
public excludeGlobs = [];
|
||||
public useClientWatching = false;
|
||||
public featureFlags = {};
|
||||
// for internal use
|
||||
public withSysroot: null | boolean = null;
|
||||
public cargoWatchOptions: CargoWatchOptions = {
|
||||
enableOnStartup: 'ask',
|
||||
trace: 'off',
|
||||
|
@ -148,5 +150,8 @@ export class Config {
|
|||
if (config.has('featureFlags')) {
|
||||
this.featureFlags = config.get('featureFlags') || {};
|
||||
}
|
||||
if (config.has('withSysroot')) {
|
||||
this.withSysroot = config.get('withSysroot') || false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue