From b9c10ed97f22d665b75895a387c633dfa412ed2b Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Wed, 25 Dec 2019 19:10:30 +0100 Subject: Re-format VSCode extension changes --- editors/code/src/commands/watch_status.ts | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'editors/code/src/commands') diff --git a/editors/code/src/commands/watch_status.ts b/editors/code/src/commands/watch_status.ts index 2404c3f16..10787b510 100644 --- a/editors/code/src/commands/watch_status.ts +++ b/editors/code/src/commands/watch_status.ts @@ -59,23 +59,22 @@ export class StatusDisplay implements vscode.Disposable { public handleProgressNotification(params: ProgressParams) { const { token, value } = params; - if (token !== "rustAnalyzer/cargoWatcher") { + if (token !== 'rustAnalyzer/cargoWatcher') { return; } - console.log("Got progress notification", token, value) switch (value.kind) { - case "begin": + case 'begin': this.show(); break; - case "report": + case 'report': if (value.message) { this.packageName = value.message; } break; - case "end": + case 'end': this.hide(); break; } @@ -88,19 +87,19 @@ export class StatusDisplay implements vscode.Disposable { // FIXME: Replace this once vscode-languageclient is updated to LSP 3.15 interface ProgressParams { - token: string - value: WorkDoneProgress + token: string; + value: WorkDoneProgress; } enum WorkDoneProgressKind { - Begin = "begin", - Report = "report", - End = "end" + Begin = 'begin', + Report = 'report', + End = 'end', } interface WorkDoneProgress { - kind: WorkDoneProgressKind, - message?: string - cancelable?: boolean - percentage?: string -} \ No newline at end of file + kind: WorkDoneProgressKind; + message?: string; + cancelable?: boolean; + percentage?: string; +} -- cgit v1.2.3