@qualified/lsp-connection

Use Language Servers with in-browser editors. Monorepo of editor agnostic packages and CodeMirror client.

Showing:

Popularity

Downloads/wk

8

GitHub Stars

7

Maintenance

Last Commit

21d ago

Contributors

2

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

Yes?

Categories

Readme

LSPs

Monorepo of packages related to LSP.

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. CI License MIT code style: prettier

Packages

Demo

Example with Rust Analyzer:

demo-rust-analyzer

The styling definitely needs work, but the above shows:

  • Realtime diagnostics
  • Completion with items from the server
  • Fuzzy matching (e.g., prl to println!)
  • Completion items with Markdown docs
  • Completion items with icons for each kind
  • Hover information with Markdown docs

Simple snippets are supported as well:

demo-snippet-completion

See examples/demo-rust to run this locally.

See examples/demo-save to run this locally with an ability to save the changes to disk.

See examples/demo-worker for an example with simple JSON Language Server running in Web Worker. A live demo is also available at https://qualified.github.io/lsps/.

See examples/demo for a simple demo project with TypeScript + CSS + HTML editors.

Tools

  • lsp-ws-proxy: WebSocketify any Language Server. lsp-ws-proxy -- langserver --stdio

Capabilities

Text Document

  • synchronization
    • didOpen ok
    • didChange ok
      • Full text change ok
      • Incremental text change ok
    • willSave meh
    • willSaveWaitUntil meh
    • didSave meh
    • didClose ok
  • completion
    • insertText ok
    • additionalTextEdits ok
    • textEdit ok
    • InsertTextFormat.Snippet meh
    • documentation meh
    • command no
    • tags no
  • hover meh
  • signatureHelp meh
  • Goto
    • declaration meh
    • definition meh
    • typeDefinition meh
    • implementation meh
  • references meh
  • documentHighlight ok
  • documentSymbol ok
  • codeAction no
  • codeLens no
  • documentLink no
  • colorProvider no
  • Formatting
    • formatting no
    • rangeFormatting no
    • onTypeFormatting no
  • rename no
  • foldingRange no
  • selectionRange no
  • publishDiagnostics meh
  • callHierarchy no

Workspace

  • applyEdit no
  • workspaceEdit no
  • didChangeConfiguration no
  • didChangeWatchedFiles meh
  • symbol no
  • executeCommand no

Window

  • workDoneProgress no

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial