mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +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,
|
_configuration: TypeScriptServiceConfiguration,
|
||||||
) {
|
) {
|
||||||
const worker = new Worker(tsServerPath);
|
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>();
|
private _onDataHandlers = new Set<(data: Proto.Response) => void>();
|
||||||
|
|
Loading…
Reference in a new issue