Default to client watching on VS Code

This commit is contained in:
Aleksey Kladov 2019-12-17 12:41:44 +01:00
parent 3e2f4e4293
commit 2432f278cb
2 changed files with 3 additions and 3 deletions

View file

@ -219,7 +219,7 @@
},
"rust-analyzer.useClientWatching": {
"type": "boolean",
"default": false,
"default": true,
"description": "client provided file watching instead of notify watching."
},
"rust-analyzer.cargo-watch.arguments": {

View file

@ -30,7 +30,7 @@ export class Config {
public displayInlayHints = true;
public maxInlayHintLength: null | number = null;
public excludeGlobs = [];
public useClientWatching = false;
public useClientWatching = true;
public featureFlags = {};
// for internal use
public withSysroot: null | boolean = null;
@ -148,7 +148,7 @@ export class Config {
this.excludeGlobs = config.get('excludeGlobs') || [];
}
if (config.has('useClientWatching')) {
this.useClientWatching = config.get('useClientWatching') || false;
this.useClientWatching = config.get('useClientWatching') || true;
}
if (config.has('featureFlags')) {
this.featureFlags = config.get('featureFlags') || {};