Reputation: 12203
I currently am in an environment where my TypeScript source code lives on a remote server. I can access the code via a network share in vscode, but latency in language service features (intellisense, goto definition, etc) is slow.
Is there a way to run the TypeScript language server on my remote server and have vscode connect to it? Hoping to leverage a performance boost by language service running where the code actually lives.
UPDATE 2024-12-03 The answer to my question in 2024 is to use the VS Code's Remote - SSH extension: https://code.visualstudio.com/docs/remote/ssh-tutorial
Upvotes: 3
Views: 1608
Reputation: 7035
You can archive that implementing a TypeScript Language Service plugin that customize module resolution. There is an example here:
The nice thing is you will only tough typescript API, and that plugin will work on any IDE that supports TypeScript Language Service. Bad thing could be that documentation is poor, this is some work I've done, basically small plugins and tutorial (I'm getting started with plugins now) https://github.com/cancerberoSgx/typescript-plugins-of-mine
Upvotes: 1