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
Credits
| |