Skip to content

Commit 6d43f2c

Browse files
committed
Fix workspace files being saved one folder up
Fixes microsoft#85394
1 parent 8b351db commit 6d43f2c

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
@@ -661,7 +661,7 @@ export class SimpleFileDialog {
661661

662662
private addPostfix(uri: URI): URI {
663663
let result = uri;
664-
if (this.requiresTrailing && this.options.filters && this.options.filters.length > 0) {
664+
if (this.requiresTrailing && this.options.filters && this.options.filters.length > 0 && !resources.hasTrailingPathSeparator(uri)) {
665665
// Make sure that the suffix is added. If the user deleted it, we automatically add it here
666666
let hasExt: boolean = false;
667667
const currentExt = resources.extname(uri).substr(1);

0 commit comments

Comments
 (0)