Pass executingFilePath to TS server

This commit is contained in:
Matt Bierner 2020-09-29 17:59:19 -07:00
parent 6ef40a891b
commit 706857dfa5

View file

@ -19,7 +19,13 @@ export class WorkerServerProcess implements TsServerProcess {
_configuration: TypeScriptServiceConfiguration,
) {
const worker = new Worker(tsServerPath);
return new WorkerServerProcess(worker, args);
return new WorkerServerProcess(worker, [
...args,
// Explicitly give TS Server its path so it can
// load local resources
'--executingFilePath', tsServerPath,
]);
}
private _onDataHandlers = new Set<(data: Proto.Response) => void>();