Skip to content

Commit

Permalink
improve openFolder uri fix (correctly treat backslashes)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Aug 9, 2018
1 parent 980db42 commit bda8a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/api/node/apiCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class OpenFolderAPICommand {
if (!uri.scheme || isWindows && uri.scheme.match(/^[a-zA-Z]$/)) {
// workaround for #55916 and #55891, will be removed in 1.28
console.warn(`'vscode.openFolder' command invoked with an invalid URI (file:// scheme missing): '${uri}'. Converted to a 'file://' URI.`);
uri = URI.file(uri.toString());
uri = URI.file((uri.scheme ? uri.scheme + ':' : '') + uri.path);
}

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

0 comments on commit bda8a4d

Please sign in to comment.