Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode: TypeScript Language Service on Remote Server

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

like image 731
bingles Avatar asked Mar 10 '26 23:03

bingles


1 Answers

You can archive that implementing a TypeScript Language Service plugin that customize module resolution. There is an example here:

https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#user-content-customizing-module-resolution

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

like image 128
cancerbero Avatar answered Mar 13 '26 17:03

cancerbero



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!