mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Pass executingFilePath to TS server
This commit is contained in:
parent
6ef40a891b
commit
706857dfa5
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue