mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
improve fix for #55891
This commit is contained in:
@@ -49,8 +49,8 @@ export class OpenFolderAPICommand {
|
||||
return executor.executeCommand('_files.pickFolderAndOpen', forceNewWindow);
|
||||
}
|
||||
if (!uri.scheme) {
|
||||
console.warn('`vscode.openFolder` command invoked with an invalid URI (scheme missing): `${uri}`. Converted to a `file://` URI.');
|
||||
uri = URI.file(uri.fsPath);
|
||||
console.warn(`'vscode.openFolder' command invoked with an invalid URI (scheme missing): '${uri}'. Converted to a 'file://' URI.`);
|
||||
uri = URI.file(uri.toString());
|
||||
}
|
||||
|
||||
return executor.executeCommand('_files.windowOpen', [uri], forceNewWindow);
|
||||
|
||||
Reference in New Issue
Block a user