Fix comments not being tokenized properly if the "head" of a form, show LSP version (#66)

This commit is contained in:
Tyler Wilding 2022-08-22 18:59:18 -04:00 committed by GitHub
parent 026133a7ae
commit c1a7356c39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -42,7 +42,7 @@ function updateStatus(status: LspStatus, extraInfo?: string) {
break;
case "started":
lspStatusItem.text = "$(circle-filled) OpenGOAL LSP Ready";
lspStatusItem.tooltip = "LSP Active";
lspStatusItem.tooltip = `LSP Active - ${extraInfo}`;
lspStatusItem.command = "opengoal.lsp.showLspStartedMenu";
break;
case "downloading":
@ -196,7 +196,7 @@ async function startClient(): Promise<void> {
updateStatus("starting");
await client.start();
activeClient = client;
updateStatus("started");
updateStatus("started", path.basename(opengoalLspPath));
} catch (error) {
console.error("opengoal-lsp:", error);
updateStatus("error");

View file

@ -202,6 +202,9 @@
}
]
},
{
"include": "#comment"
},
{
"include": "#keyfn"
},
@ -263,7 +266,7 @@
"name": "meta.var.opengoal-ir"
},
"readerMacros": {
"match": "('|,@|`|,)",
"match": "('|,@|`|,|&->)",
"name": "keyword.operator.opengoal-ir"
}
}

View file

@ -202,6 +202,9 @@
}
]
},
{
"include": "#comment"
},
{
"include": "#keyfn"
},
@ -263,7 +266,7 @@
"name": "meta.var.opengoal"
},
"readerMacros": {
"match": "('|,@|`|,)",
"match": "('|,@|`|,|&->)",
"name": "keyword.operator.opengoal"
}
}