kakehashi for VSCode
VSCode client for the kakehashi language server.
This extension does not attach to any document by default. Configure
kakehashi.documentSelector to tell the extension which documents to attach to.
Example configuration (settings.json)
{
"kakehashi.command": ["kakehashi"],
"[markdown]": {
"editor.quickSuggestions": {
"other": "on",
},
},
"kakehashi.documentSelector": [
"markdown",
"quarto",
"rmd"
],
"kakehashi.env": null,
"kakehashi.initializationOptions": null,
"kakehashi.trace.server": "off"
}
To work on Quarto and R Markdown on VSCode, you should also install following extensions respectively:
Note that Positron does not support REditorSupport.r.
Instead, add a folowing entry to your settings.json .
"files.associations": { "*.Rmd": "markdown" }
Settings
| Setting |
Type |
Default |
Description |
kakehashi.command |
string[] |
["kakehashi"] |
Argv used to spawn the server. First element is the executable; the rest are arguments. |
kakehashi.documentSelector |
(string \| object)[] |
[] |
Documents to attach to. Each entry is either a language id string or a { language?, scheme?, pattern? } object. Empty disables the client. |
kakehashi.env |
Record<string, string> \| null |
null |
Environment variables merged onto the extension process environment when spawning the server. |
kakehashi.initializationOptions |
object \| null |
null |
Passed verbatim as LSP initializationOptions. |
kakehashi.trace.server |
"off" \| "messages" \| "verbose" |
"off" |
Controls LSP message tracing for the language server. |
Changing any of these settings restarts the language client automatically.
Commands
kakehashi: Configure Document Selector — opens settings filtered to kakehashi.documentSelector.
kakehashi: Restart Server — stops and restarts the language client.
Requirements
- VSCode
>= 1.100.0
- The kakehashi binary on
PATH (or set kakehashi.command to an absolute path)
License
MIT