Skip to content

Commit

Permalink
Ensure no trailing path separtor on URIs from file picker
Browse files Browse the repository at this point in the history
Part of #75847
  • Loading branch information
alexr00 committed Jun 21, 2019
1 parent 50fc8fd commit 94e7cd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/workbench/services/dialogs/browser/remoteFileDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ export class RemoteFileDialog {
this.filePickBox.items = [];

function doResolve(dialog: RemoteFileDialog, uri: URI | undefined) {
if (uri) {
uri = resources.removeTrailingPathSeparator(uri);
}
resolve(uri);
dialog.contextKey.set(false);
dialog.filePickBox.dispose();
Expand Down

0 comments on commit 94e7cd9

Please sign in to comment.