mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Make rootPath undefined in a multiroot workspace, #69335
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user