Skip to content

Commit

Permalink
Right trim in simple file dialog
Browse files Browse the repository at this point in the history
Fixes #95760
  • Loading branch information
alexr00 committed May 13, 2020
1 parent 7c8e4d5 commit 8777660
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export class SimpleFileDialog {

private filePickBoxValue(): URI {
// The file pick box can't render everything, so we use the current folder to create the uri so that it is an existing path.
const directUri = this.remoteUriFrom(this.filePickBox.value);
const directUri = this.remoteUriFrom(this.filePickBox.value.trimRight());
const currentPath = this.pathFromUri(this.currentFolder);
if (equalsIgnoreCase(this.filePickBox.value, currentPath)) {
return this.currentFolder;
Expand Down

0 comments on commit 8777660

Please sign in to comment.