File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/workbench/services/dialogs/browser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -584,9 +584,9 @@ export class SimpleFileDialog implements ISimpleFileDialog {
584
584
} else {
585
585
const newFolderIsOldFolder = resources . extUriIgnorePathCase . isEqual ( this . currentFolder , valueUri ) ;
586
586
const newFolderIsSubFolder = resources . extUriIgnorePathCase . isEqual ( this . currentFolder , resources . dirname ( valueUri ) ) ;
587
- const newFolderIsParent = ! newFolderIsOldFolder && resources . extUriIgnorePathCase . isEqualOrParent ( this . currentFolder , resources . dirname ( valueUri ) ) ;
588
- const newFolderIsUnrelated = ! newFolderIsOldFolder && ! newFolderIsParent && ! newFolderIsSubFolder ;
589
- if ( this . endsWithSlash ( value ) || newFolderIsParent || newFolderIsUnrelated ) {
587
+ const newFolderIsParent = resources . extUriIgnorePathCase . isEqualOrParent ( this . currentFolder , resources . dirname ( valueUri ) ) ;
588
+ const newFolderIsUnrelated = ! newFolderIsParent && ! newFolderIsSubFolder ;
589
+ if ( ! newFolderIsOldFolder && ( this . endsWithSlash ( value ) || newFolderIsParent || newFolderIsUnrelated ) ) {
590
590
let stat : IFileStatWithPartialMetadata | undefined ;
591
591
try {
592
592
stat = await this . fileService . stat ( valueUri ) ;
You can’t perform that action at this time.
0 commit comments