diff options
author | Aleksey Kladov <[email protected]> | 2021-04-06 13:50:02 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-04-06 13:50:02 +0100 |
commit | ad02bfe58fd52293d9ae4a049f98f475df9d3abb (patch) | |
tree | be93b491fdefe0fb217dfb5aa9f1791ea672f196 /editors | |
parent | 8fe20b19d4702fc6d6933c31abddc8539d2581f0 (diff) |
Sacrifice for the semicolon god
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/ctx.ts | 4 | ||||
-rw-r--r-- | editors/code/src/lsp_ext.ts | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index c05e757f8..bd023f803 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts | |||
@@ -74,13 +74,13 @@ export class Ctx { | |||
74 | this.statusBar.color = undefined; | 74 | this.statusBar.color = undefined; |
75 | break; | 75 | break; |
76 | case "warning": | 76 | case "warning": |
77 | this.statusBar.tooltip += "\nClick to reload." | 77 | this.statusBar.tooltip += "\nClick to reload."; |
78 | this.statusBar.command = "rust-analyzer.reloadWorkspace"; | 78 | this.statusBar.command = "rust-analyzer.reloadWorkspace"; |
79 | this.statusBar.color = new vscode.ThemeColor("notificationsWarningIcon.foreground"); | 79 | this.statusBar.color = new vscode.ThemeColor("notificationsWarningIcon.foreground"); |
80 | icon = "$(warning) "; | 80 | icon = "$(warning) "; |
81 | break; | 81 | break; |
82 | case "error": | 82 | case "error": |
83 | this.statusBar.tooltip += "\nClick to reload." | 83 | this.statusBar.tooltip += "\nClick to reload."; |
84 | this.statusBar.command = "rust-analyzer.reloadWorkspace"; | 84 | this.statusBar.command = "rust-analyzer.reloadWorkspace"; |
85 | this.statusBar.color = new vscode.ThemeColor("notificationsErrorIcon.foreground"); | 85 | this.statusBar.color = new vscode.ThemeColor("notificationsErrorIcon.foreground"); |
86 | icon = "$(error) "; | 86 | icon = "$(error) "; |
diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts index 2e1744f1b..e453bb9e0 100644 --- a/editors/code/src/lsp_ext.ts +++ b/editors/code/src/lsp_ext.ts | |||
@@ -11,9 +11,9 @@ export const analyzerStatus = new lc.RequestType<AnalyzerStatusParams, string, v | |||
11 | export const memoryUsage = new lc.RequestType0<string, void>("rust-analyzer/memoryUsage"); | 11 | export const memoryUsage = new lc.RequestType0<string, void>("rust-analyzer/memoryUsage"); |
12 | 12 | ||
13 | export interface ServerStatusParams { | 13 | export interface ServerStatusParams { |
14 | health: "ok" | "warning" | "error" | 14 | health: "ok" | "warning" | "error"; |
15 | quiescent: boolean | 15 | quiescent: boolean; |
16 | message?: string | 16 | message?: string; |
17 | } | 17 | } |
18 | export const serverStatus = new lc.NotificationType<ServerStatusParams>("experimental/serverStatus"); | 18 | export const serverStatus = new lc.NotificationType<ServerStatusParams>("experimental/serverStatus"); |
19 | 19 | ||