mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Sacrifice for the semicolon god
This commit is contained in:
parent
8fe20b19d4
commit
ad02bfe58f
2 changed files with 5 additions and 5 deletions
|
@ -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) ";
|
||||||
|
|
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue