mirror of
https://github.com/open-goal/opengoal-vscode.git
synced 2024-10-19 20:47:37 -04:00
lsp: show version in LSP
This commit is contained in:
parent
bf8c8a414b
commit
3ad9b0d5aa
|
@ -42,7 +42,7 @@ function updateStatus(status: LspStatus, extraInfo?: string) {
|
||||||
break;
|
break;
|
||||||
case "started":
|
case "started":
|
||||||
lspStatusItem.text = "$(circle-filled) OpenGOAL LSP Ready";
|
lspStatusItem.text = "$(circle-filled) OpenGOAL LSP Ready";
|
||||||
lspStatusItem.tooltip = "LSP Active";
|
lspStatusItem.tooltip = `LSP Active - ${extraInfo}`;
|
||||||
lspStatusItem.command = "opengoal.lsp.showLspStartedMenu";
|
lspStatusItem.command = "opengoal.lsp.showLspStartedMenu";
|
||||||
break;
|
break;
|
||||||
case "downloading":
|
case "downloading":
|
||||||
|
@ -196,7 +196,7 @@ async function startClient(): Promise<void> {
|
||||||
updateStatus("starting");
|
updateStatus("starting");
|
||||||
await client.start();
|
await client.start();
|
||||||
activeClient = client;
|
activeClient = client;
|
||||||
updateStatus("started");
|
updateStatus("started", path.basename(opengoalLspPath));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("opengoal-lsp:", error);
|
console.error("opengoal-lsp:", error);
|
||||||
updateStatus("error");
|
updateStatus("error");
|
||||||
|
|
Loading…
Reference in a new issue