mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-01 08:42:55 +08:00
25 lines
468 B
JavaScript
25 lines
468 B
JavaScript
const { LanguageClient } = require("vscode-languageclient/node");
|
|
|
|
let client;
|
|
|
|
function activate() {
|
|
client = new LanguageClient(
|
|
"elvish",
|
|
"Elvish Language Server",
|
|
{ command: "elvish", args: ["-lsp"] },
|
|
{ documentSelector: [{ scheme: "file", language: "elvish" }] }
|
|
);
|
|
client.start();
|
|
}
|
|
|
|
function deactivate() {
|
|
if (client) {
|
|
return client.stop();
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
activate,
|
|
deactivate,
|
|
};
|