mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
for now, restore false rootPath, #28526
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user