We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fb2210 commit 2525f40Copy full SHA for 2525f40
1 file changed
src/vs/workbench/api/node/apiCommands.ts
@@ -49,8 +49,8 @@ export class OpenFolderAPICommand {
49
return executor.executeCommand('_files.pickFolderAndOpen', forceNewWindow);
50
}
51
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);
+ console.warn(`'vscode.openFolder' command invoked with an invalid URI (scheme missing): '${uri}'. Converted to a 'file://' URI.`);
+ uri = URI.file(uri.toString());
54
55
56
return executor.executeCommand('_files.windowOpen', [uri], forceNewWindow);
0 commit comments