VSCode reference client for the RLS
This repo provides the RLS client for vscode built using the Language Server protocol. This plugin will start the RLS for you, assuming it is in your path.
Git clone or download the files and use
npm install in
the directory to download and install the required modules.
Next, without installing the client as a regular VSCode extension, open the client folder in VSCode. Go to the debugger and run "Launch Extension". This opens a new instance of VSCode with the plugin installed.
For the plugin to find the RLS, be sure to set your
variable to the root of your rls checkout:
You can also add this export to your bash profile or equivalent.
Manually add as regular VSCode extension
If you'd like to test on multiple projects and already have the extension working properly, you can manually install the extension so that it's loaded into VSCode by default.
After following the above instructions, and successfully building the extension once, symlink or copy the
rls_vscode directory to either:
Windows: %USERPROFILE%\.vscode\extensions Mac/Linux: $HOME/.vscode/extensions
For example, to setup a symlink on Mac/Linux:
ln -s /path/to/rls_vscode/ ~/.vscode/extensions/rls_vscode
Restart VSCode in order to load the extension. More information available via VSCode docs.
Error messages containing
tsc -watch -p ./ or
npm ERR! Failed at the email@example.com compile script 'tsc -watch -p ./'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the rls_vscode package, npm ERR! not with npm itself.
see http://stackoverflow.com/a/31926452/1103681 for an explanation
if that doesn't work, run
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
TypeError: Cannot read property 'dispose' of null
DEV_MODE variable in
true and try again to see the real error.