Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Generic LSP ClientNew to Visual Studio Code? Get it now.
Generic LSP Client

Generic LSP Client

llllvvuu

llllvvuu.dev
|
3 installs
| (0) | Free
Generic LSP Client for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Generic LSP Client for VSCode

For the rare instances where you have an LSP Server but not an LSP Client for VSCode.

Marketplace Link

Generic LSP Client

Configuration Example

settings.json:

{
  "glspc.languageId": "solidity",
  "glspc.serverCommand": "/Users/me/.local/share/nvim/mason/bin/efm-langserver",
  "glspc.pathPrepend": "/Users/me/.local/share/rtx/installs/python/3.11.4/bin:/Users/me/.local/share/rtx/installs/node/20.3.1/bin",
  "glspc.serverCommandArguments": [],
  "glspc.initializationOptions": {}
}

(you will likely need to set pathPrepend since VSCode doesn't run your .bashrc/.zshrc)

Multiple LSP Servers

This extension is not a process manager (yet), so to get clients for multiple LSP servers you need to build multiple copies of this extension:

vi package.json  # change the "name", "displayName", and "description" fields
                 # also find/replace "Generic LSP Client"
npm install
npm run package

Then you can load it into VSCode under Extensions > ... > Install from VSIX...

See Also

  • mattn/efm-langserver - Adapter for any command-line tool to LSP.
  • llllvvuu/efm-tool-definitions.yaml - Configuration presets for the above.

Credits

  • torokati44/vscode-glspc - where this is forked from
  • Matts966/efm-langserver-vscode - where the text changed handlers are taken from
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft