Home

Awesome

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

Setup

Configure the server executable under "Extension Settings".

"Failed to start server: spawn {command} ENOENT"

If there is a $PATH issue, you have a few options:

  1. Run code . from a terminal in which the command is available in $PATH.
  2. Set PATH in glspc.environmentVariables under "Extension Settings".

Tracing

You can enable tracing by adding "glspc.trace.server": "verbose" to your settings.json and then checking the "Generic LSP Client" output.

Multiple LSP Servers

This extension is currently only able to register one language server. If necessary, you can 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

Credits