Skip to content

Commit

Permalink
Merge #2578
Browse files Browse the repository at this point in the history
2578: Default to client watching on VS Code r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
  • Loading branch information
bors[bot] and matklad authored Dec 17, 2019
2 parents 827831d + 2432f27 commit 7191dd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion editors/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions editors/code/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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') || {};
Expand Down

0 comments on commit 7191dd7

Please sign in to comment.