提交 706857df 编写于 作者: M Matt Bierner

Pass executingFilePath to TS server

上级 6ef40a89
......@@ -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>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册