vscode: TypeScript Language Service on Remote Server

1.3k Views Asked by At

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.

1

There are 1 best solutions below

2
cancerbero On

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