for now, restore false rootPath, #28526

This commit is contained in:
Johannes Rieken
2017-06-22 12:25:37 +02:00
parent 0a45bc69ad
commit aec62b1f78
2 changed files with 8 additions and 5 deletions

View File

@@ -55,12 +55,15 @@ export class ExtHostWorkspace extends ExtHostWorkspaceShape {
return undefined;
}
const { roots } = this._workspace;
if (roots.length === 1) {
return roots[0].fsPath;
if (roots.length === 0) {
return undefined;
}
// if (roots.length === 1) {
return roots[0].fsPath;
// }
// return `undefined` when there no or more than 1
// root folder.
return undefined;
// return undefined;
}
getRelativePath(pathOrUri: string | vscode.Uri): string {