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; this.statusBar.color = undefined;
break; break;
case "warning": case "warning":
this.statusBar.tooltip += "\nClick to reload." this.statusBar.tooltip += "\nClick to reload.";
this.statusBar.command = "rust-analyzer.reloadWorkspace"; this.statusBar.command = "rust-analyzer.reloadWorkspace";
this.statusBar.color = new vscode.ThemeColor("notificationsWarningIcon.foreground"); this.statusBar.color = new vscode.ThemeColor("notificationsWarningIcon.foreground");
icon = "$(warning) "; icon = "$(warning) ";
break; break;
case "error": case "error":
this.statusBar.tooltip += "\nClick to reload." this.statusBar.tooltip += "\nClick to reload.";
this.statusBar.command = "rust-analyzer.reloadWorkspace"; this.statusBar.command = "rust-analyzer.reloadWorkspace";
this.statusBar.color = new vscode.ThemeColor("notificationsErrorIcon.foreground"); this.statusBar.color = new vscode.ThemeColor("notificationsErrorIcon.foreground");
icon = "$(error) "; 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 const memoryUsage = new lc.RequestType0<string, void>("rust-analyzer/memoryUsage");
export interface ServerStatusParams { export interface ServerStatusParams {
health: "ok" | "warning" | "error" health: "ok" | "warning" | "error";
quiescent: boolean quiescent: boolean;
message?: string message?: string;
} }
export const serverStatus = new lc.NotificationType<ServerStatusParams>("experimental/serverStatus"); export const serverStatus = new lc.NotificationType<ServerStatusParams>("experimental/serverStatus");