提交 b06450e1 编写于 作者: M Matt Bierner

Remove mainWorkspaceRootPath

上级 820ad848
......@@ -325,9 +325,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
const options: electron.IForkOptions = {
execArgv: [] // [`--debug-brk=5859`]
};
if (this.mainWorkspaceRootPath) {
options.cwd = this.mainWorkspaceRootPath;
}
const args: string[] = [];
if (this.apiVersion.has206Features()) {
......@@ -630,14 +627,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
return Uri.file(filepath);
}
private get mainWorkspaceRootPath(): string | undefined {
if (workspace.workspaceFolders && workspace.workspaceFolders.length) {
return workspace.workspaceFolders[0].uri.fsPath;
}
return undefined;
}
public getWorkspaceRootForResource(resource: Uri): string | undefined {
const roots = workspace.workspaceFolders;
if (!roots || !roots.length) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册