We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10cbb85 commit 4324cadCopy full SHA for 4324cad
1 file changed
src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts
@@ -290,12 +290,7 @@ export class SimpleFileDialog {
290
291
function doResolve(dialog: SimpleFileDialog, uri: URI | undefined) {
292
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
- }
+ uri = resources.removeTrailingPathSeparator(uri);
299
}
300
resolve(uri);
301
dialog.contextKey.set(false);
0 commit comments