2578: Default to client watching on VS Code r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2019-12-17 11:42:19 +00:00 committed by GitHub
commit 7191dd7d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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