-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b53a87
commit c74b5e0
Showing
18 changed files
with
1,398 additions
and
4,818 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
const workspace = require("vscode").workspace; | ||
const LanguageClient = require("vscode-languageclient/node").LanguageClient; | ||
|
||
let client; | ||
|
||
function activate(context) { | ||
console.log("Starting teal-language-server..."); | ||
|
||
let serverExecutableName = "teal-language-server" | ||
|
||
let executable = { | ||
command: serverExecutableName | ||
}; | ||
|
||
let serverOptions = { | ||
run: executable, | ||
debug: executable | ||
}; | ||
|
||
let clientOptions = { | ||
documentSelector: [ | ||
{ scheme: 'file', language: 'teal' }, | ||
{ scheme: 'file', language: 'lua', pattern: '**/tlconfig.lua' } | ||
], | ||
synchronize: { | ||
fileEvents: workspace.createFileSystemWatcher('**/*.{tl,lua}') | ||
}, | ||
outputChannelName: 'Teal Language Server' | ||
}; | ||
|
||
client = new LanguageClient( | ||
'TealLanguageServer', | ||
'Teal Language Server', | ||
serverOptions, | ||
clientOptions | ||
); | ||
|
||
client.start(); | ||
} | ||
|
||
function deactivate() { | ||
if (!client) { | ||
return undefined; | ||
} | ||
|
||
return client.stop(); | ||
} | ||
|
||
module.exports = { | ||
activate: activate, | ||
deactivate: deactivate | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.