singleton-tsserver
单实例的 tsserver
针对同样的参数,只启动一个 tsserver 实例
用法
const ClusterTsServerProcess = ; const options = tsServerPath: '<tsServerPath>' args: '--useInferredProjectPerProjectRoot' '--enableTelemetry' '--noGetErrOnBackgroundUpdate' '--validateDefaultNpmLocation' ; const proc = options;procstdout; proc;