Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>glspcNew to Visual Studio Code? Get it now.
glspc

glspc

TÖRÖK Attila

|
419 installs
| (1) | 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 VS Code

This is a barebones, minimal, simple LSP client extension that starts an arbitrary executable to be used as a server through its stdin and stdout.

Nothing more, nothing less.

Mostly for testing and experimentation.

This was scraped together from:

  • https://github.com/microsoft/vscode-extension-samples/tree/master/helloworld-sample
  • https://github.com/microsoft/vscode-extension-samples/tree/master/lsp-sample
  • https://github.com/MaskRay/vscode-ccls

Inspired by my repeated frustration of how unsimple this is with VS Code out of the box, in contrast with Kate

Usage

Set the "glspc.serverPath" configuration setting to the full path of an executable that implements the LSP protocol through its standard input and output streams. This executable will be started as an LSP server for any file in "Plain Text" mode, so you should (usually) get working autocompletion, outline, problem markers, and whatnot.

Example values:

  • "/usr/bin/ccls"
  • "/home/<user>/.cargo/bin/rls"
  • "/usr/bin/clangd"
  • "/home/<user>/.local/bin/pyls"

If the server of your choice only speaks TCP or WS or HTTP or something, you can try putting together a wrapper script for it using nc or netcat or socat, or similar for other protocols.

Running during Development

  • Run npm install in terminal to install dependencies
  • Run the Run Extension target in the Debug View. This will:
    • Start a task npm: watch to compile the code
    • Run the extension in a new VS Code window
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft