]> git.lizzy.rs Git - rust.git/commitdiff
Default to client watching on VS Code
authorAleksey Kladov <aleksey.kladov@gmail.com>
Tue, 17 Dec 2019 11:41:44 +0000 (12:41 +0100)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Tue, 17 Dec 2019 11:41:44 +0000 (12:41 +0100)
editors/code/package.json
editors/code/src/config.ts

index 9290599c7adee7f3c2cdbe0f5e0f37071e4e945a..34bc81d5fc2415290f66a17bde4ca831ea8b6f7e 100644 (file)
                 },
                 "rust-analyzer.useClientWatching": {
                     "type": "boolean",
-                    "default": false,
+                    "default": true,
                     "description": "client provided file watching instead of notify watching."
                 },
                 "rust-analyzer.cargo-watch.arguments": {
index defdfeb9c4bdca69d8d23467136041318ac9369d..df15c81721a95f13368fb98320794caa015136e2 100644 (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') || {};