Skip to content

Commit 8777660

Browse files
authored
Right trim in simple file dialog
Fixes microsoft#95760
1 parent 7c8e4d5 commit 8777660

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ export class SimpleFileDialog {
448448

449449
private filePickBoxValue(): URI {
450450
// 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.
451-
const directUri = this.remoteUriFrom(this.filePickBox.value);
451+
const directUri = this.remoteUriFrom(this.filePickBox.value.trimRight());
452452
const currentPath = this.pathFromUri(this.currentFolder);
453453
if (equalsIgnoreCase(this.filePickBox.value, currentPath)) {
454454
return this.currentFolder;

0 commit comments

Comments
 (0)