lsp: show version in LSP

This commit is contained in:
Tyler Wilding 2022-08-22 18:50:34 -04:00
parent bf8c8a414b
commit 3ad9b0d5aa
No known key found for this signature in database
GPG key ID: A89403EB356ED106

View file

@ -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");