Coder Social home page Coder Social logo

notpushkin / lsps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qualified/lsps

0.0 1.0 0.0 12.91 MB

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

License: MIT License

JavaScript 0.34% TypeScript 95.95% CSS 3.71%

lsps's Introduction

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/rust-analyzer to run this locally.

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

See examples/web-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/html-css-ts 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

lsps's People

Contributors

kazk avatar github-actions[bot] avatar overzealous avatar renovate-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.