elastic-lsp

1.1.9 • Public • Published

Elastic LSP

Based on the following code: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide

Functionality

This Language Server works for plain text file. It has the following language features:

  • Completions (as provided by Spotify's elastic search)

Structure

.
├── client // Language Client
│   ├── src
│   │   ├── test // End to End tests for Language Client / Server
│   │   └── extension.ts // Language Client entry point
├── package.json // The extension manifest.
└── server // Language Server
    └── src
        └── server.ts // Language Server entry point

Running the LSP

  • Run npm install in this folder. This installs all necessary npm modules in both the client and server folder
  • Open VS Code on this folder.
  • Press Ctrl+Shift+B to compile the client and server.
  • Switch to the Debug viewlet.
  • Select Launch Client from the drop down.
  • Run the launch config.
  • If you want to debug the server as well use the launch configuration Attach to Server
  • In the [Extension Development Host] instance of VSCode, open a document in 'plain text' language mode.
    • Begin typing a query, and the LSP will immediately begin providing schema field suggestions.
    • Enter a backtick, and the LSP will start proving dataset suggestions instead of schema field suggestions.

Readme

Keywords

Package Sidebar

Install

npm i elastic-lsp

Weekly Downloads

2

Version

1.1.9

License

MIT

Unpacked Size

188 kB

Total Files

64

Last publish

Collaborators

  • gchestnut