Sacrifice for the semicolon god

This commit is contained in:
Aleksey Kladov 2021-04-06 15:50:02 +03:00
parent 8fe20b19d4
commit ad02bfe58f
2 changed files with 5 additions and 5 deletions

View File

@ -74,13 +74,13 @@ export class Ctx {
this.statusBar.color = undefined;
break;
case "warning":
this.statusBar.tooltip += "\nClick to reload."
this.statusBar.tooltip += "\nClick to reload.";
this.statusBar.command = "rust-analyzer.reloadWorkspace";
this.statusBar.color = new vscode.ThemeColor("notificationsWarningIcon.foreground");
icon = "$(warning) ";
break;
case "error":
this.statusBar.tooltip += "\nClick to reload."
this.statusBar.tooltip += "\nClick to reload.";
this.statusBar.command = "rust-analyzer.reloadWorkspace";
this.statusBar.color = new vscode.ThemeColor("notificationsErrorIcon.foreground");
icon = "$(error) ";

View File

@ -11,9 +11,9 @@ export const analyzerStatus = new lc.RequestType<AnalyzerStatusParams, string, v
export const memoryUsage = new lc.RequestType0<string, void>("rust-analyzer/memoryUsage");
export interface ServerStatusParams {
health: "ok" | "warning" | "error"
quiescent: boolean
message?: string
health: "ok" | "warning" | "error";
quiescent: boolean;
message?: string;
}
export const serverStatus = new lc.NotificationType<ServerStatusParams>("experimental/serverStatus");