spark-sql-language-server
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.6 • Public • Published

SparkSQL LSP language server web extension

A SparkSQL LSP server that runs in a web extension/WebWorker.

Functionality

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.

Usage

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]
});

Other language servers

/spark-sql-language-server/

    Package Sidebar

    Install

    npm i spark-sql-language-server

    Weekly Downloads

    2

    Version

    0.0.1-beta.6

    License

    MIT

    Unpacked Size

    10.8 MB

    Total Files

    67

    Last publish

    Collaborators

    • simplejason
    • zhaoshaoting.zst