Skip to content

Commit 4324cad

Browse files
committed
Revert "Ensure that when there is a Windows drive letter as the whole path the simple file picker keeps the slash"
This reverts commit 4ba2070 in favor of a better solution to removeTrailingPathSeparator.
1 parent 10cbb85 commit 4324cad

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,7 @@ export class SimpleFileDialog {
290290

291291
function doResolve(dialog: SimpleFileDialog, uri: URI | undefined) {
292292
if (uri) {
293-
// If the uri is only the drive letter, make sure it has the trailing path separator
294-
if (/^[a-zA-Z]:(\/$|\\$|$)/.test(uri.fsPath)) {
295-
uri = resources.addTrailingPathSeparator(uri);
296-
} else {
297-
uri = resources.removeTrailingPathSeparator(uri);
298-
}
293+
uri = resources.removeTrailingPathSeparator(uri);
299294
}
300295
resolve(uri);
301296
dialog.contextKey.set(false);

0 commit comments

Comments
 (0)