Make rootPath undefined in a multiroot workspace, #69335

This commit is contained in:
Rob Lourens
2019-12-06 14:07:15 -08:00
parent 0403a10885
commit 5bc80f3ea0
2 changed files with 6 additions and 1 deletions

View File

@@ -339,6 +339,11 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac
if (folders.length === 0) {
return undefined;
}
if (folders.length > 1) {
return undefined;
}
// #54483 @Joh Why are we still using fsPath?
return folders[0].uri.fsPath;
}