From 04f0f5077a3567043f202c7caa9a3c40ad798637 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Dec 2019 23:30:35 +0100 Subject: Reformat with tsfmt --- editors/code/src/commands/syntax_tree.ts | 4 +-- editors/code/src/config.ts | 4 +-- editors/code/src/highlighting.ts | 52 ++++++++++++++++---------------- editors/code/src/status_display.ts | 4 +-- 4 files changed, 32 insertions(+), 32 deletions(-) (limited to 'editors/code/src') diff --git a/editors/code/src/commands/syntax_tree.ts b/editors/code/src/commands/syntax_tree.ts index 20ff7e5ca..5b8f6e4d9 100644 --- a/editors/code/src/commands/syntax_tree.ts +++ b/editors/code/src/commands/syntax_tree.ts @@ -85,8 +85,8 @@ class TextDocumentContentProvider range = editor.selection.isEmpty ? undefined : this.ctx.client.code2ProtocolConverter.asRange( - editor.selection, - ); + editor.selection, + ); } const request: SyntaxTreeParams = { diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 2bd276958..e323110a4 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -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], )) diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts index c7ee8c0a1..96d550376 100644 --- a/editors/code/src/highlighting.ts +++ b/editors/code/src/highlighting.ts @@ -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(decorations); } diff --git a/editors/code/src/status_display.ts b/editors/code/src/status_display.ts index ed8573f02..48cf0655b 100644 --- a/editors/code/src/status_display.ts +++ b/editors/code/src/status_display.ts @@ -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); -- cgit v1.2.3