We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b351db commit 6d43f2cCopy full SHA for 6d43f2c
1 file changed
src/vs/workbench/services/dialogs/browser/simpleFileDialog.ts
@@ -661,7 +661,7 @@ export class SimpleFileDialog {
661
662
private addPostfix(uri: URI): URI {
663
let result = uri;
664
- if (this.requiresTrailing && this.options.filters && this.options.filters.length > 0) {
+ if (this.requiresTrailing && this.options.filters && this.options.filters.length > 0 && !resources.hasTrailingPathSeparator(uri)) {
665
// Make sure that the suffix is added. If the user deleted it, we automatically add it here
666
let hasExt: boolean = false;
667
const currentExt = resources.extname(uri).substr(1);
0 commit comments