Skip to content

Commit 2525f40

Browse files
committed
improve fix for microsoft#55891
1 parent 7fb2210 commit 2525f40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/api/node/apiCommands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export class OpenFolderAPICommand {
4949
return executor.executeCommand('_files.pickFolderAndOpen', forceNewWindow);
5050
}
5151
if (!uri.scheme) {
52-
console.warn('`vscode.openFolder` command invoked with an invalid URI (scheme missing): `${uri}`. Converted to a `file://` URI.');
53-
uri = URI.file(uri.fsPath);
52+
console.warn(`'vscode.openFolder' command invoked with an invalid URI (scheme missing): '${uri}'. Converted to a 'file://' URI.`);
53+
uri = URI.file(uri.toString());
5454
}
5555

5656
return executor.executeCommand('_files.windowOpen', [uri], forceNewWindow);

0 commit comments

Comments
 (0)