]> git.lizzy.rs Git - rust.git/commitdiff
Reformat with tsfmt
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 30 Dec 2019 22:30:35 +0000 (23:30 +0100)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 30 Dec 2019 22:30:35 +0000 (23:30 +0100)
editors/code/src/commands/syntax_tree.ts
editors/code/src/config.ts
editors/code/src/highlighting.ts
editors/code/src/status_display.ts
editors/code/tsconfig.json

index 20ff7e5ca047487472f27c287e91500ba0ab3f61..5b8f6e4d94b018b525ee025625d31765d0d10b5a 100644 (file)
@@ -85,8 +85,8 @@ class TextDocumentContentProvider
             range = editor.selection.isEmpty
                 ? undefined
                 : this.ctx.client.code2ProtocolConverter.asRange(
-                      editor.selection,
-                  );
+                    editor.selection,
+                );
         }
 
         const request: SyntaxTreeParams = {
index 2bd276958f03af4625fe7d454101bdbe214c86ef..e323110a4b4000b7d385892171c969d2c5ff26a2 100644 (file)
@@ -171,9 +171,9 @@ export class Config {
             (this.cargoFeatures.allFeatures !==
                 this.prevCargoFeatures.allFeatures ||
                 this.cargoFeatures.noDefaultFeatures !==
-                    this.prevCargoFeatures.noDefaultFeatures ||
+                this.prevCargoFeatures.noDefaultFeatures ||
                 this.cargoFeatures.features.length !==
-                    this.prevCargoFeatures.features.length ||
+                this.prevCargoFeatures.features.length ||
                 this.cargoFeatures.features.some(
                     (v, i) => v !== this.prevCargoFeatures!.features[i],
                 ))
index c7ee8c0a16de62d9b19e0582f5a41b9f383b3f18..96d550376b17aebe39d4f505b478b85a0bfb9a04 100644 (file)
@@ -151,32 +151,32 @@ class Highlighter {
             string,
             vscode.TextEditorDecorationType,
         ]> = [
-            decoration('comment'),
-            decoration('string'),
-            decoration('keyword'),
-            decoration('keyword.control'),
-            decoration('keyword.unsafe'),
-            decoration('function'),
-            decoration('parameter'),
-            decoration('constant'),
-            decoration('type.builtin'),
-            decoration('type.generic'),
-            decoration('type.lifetime'),
-            decoration('type.param'),
-            decoration('type.self'),
-            decoration('type'),
-            decoration('text'),
-            decoration('attribute'),
-            decoration('literal'),
-            decoration('literal.numeric'),
-            decoration('literal.char'),
-            decoration('literal.byte'),
-            decoration('macro'),
-            decoration('variable'),
-            decoration('variable.mut', 'underline'),
-            decoration('field'),
-            decoration('module'),
-        ];
+                decoration('comment'),
+                decoration('string'),
+                decoration('keyword'),
+                decoration('keyword.control'),
+                decoration('keyword.unsafe'),
+                decoration('function'),
+                decoration('parameter'),
+                decoration('constant'),
+                decoration('type.builtin'),
+                decoration('type.generic'),
+                decoration('type.lifetime'),
+                decoration('type.param'),
+                decoration('type.self'),
+                decoration('type'),
+                decoration('text'),
+                decoration('attribute'),
+                decoration('literal'),
+                decoration('literal.numeric'),
+                decoration('literal.char'),
+                decoration('literal.byte'),
+                decoration('macro'),
+                decoration('variable'),
+                decoration('variable.mut', 'underline'),
+                decoration('field'),
+                decoration('module'),
+            ];
 
         return new Map<string, vscode.TextEditorDecorationType>(decorations);
     }
index ed8573f029f2e0dbcd9d4f88f288f9ba935adace..48cf0655be65250a96c04985752f2355437c3663 100644 (file)
@@ -28,11 +28,11 @@ export class StatusDisplay implements vscode.Disposable {
                 if (this.packageName) {
                     this.statusBarItem!.text = `cargo ${this.command} [${
                         this.packageName
-                    }] ${this.frame()}`;
+                        }] ${this.frame()}`;
                 } else {
                     this.statusBarItem!.text = `cargo ${
                         this.command
-                    } ${this.frame()}`;
+                        } ${this.frame()}`;
                 }
             }, 300);
 
index a4fbb4b821d23f7a0a44721d8c711f287c194ee6..fe3b40f347ac267a616004358b10542b9c5466d7 100644 (file)
@@ -12,7 +12,8 @@
         "noUnusedLocals": true,
         "noUnusedParameters": true,
         "noImplicitReturns": true,
-        "noFallthroughCasesInSwitch": true
+        "noFallthroughCasesInSwitch": true,
+        "newLine": "LF"
     },
     "exclude": [
         "node_modules"