A SparkSQL LSP server that runs in a web extension/WebWorker.
This Language Server runs syntax validation while the textDocument's content is changing (turned off by default). In addition, it supports LSP capabilities including:
- Auto-completion
- Custom commands:
- extension.sparksql.validationOn: used to turn on/off syntax validation in language server.
The package exports a worker JS file named "sparksql-server-worker". To run in a browser env, such as monaco-editor
,
please use it to create a Worker
instance with the help of monaco-languageclient
.
Use sendRequest
API to execute custom commands:
languageClient.sendRequest(ExecuteCommandRequest.type, {
command: "extension.sparksql.validationOn",
arguments: [true]
});