mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
parent
a163748c59
commit
fba040af32
|
@ -584,9 +584,9 @@ export class SimpleFileDialog implements ISimpleFileDialog {
|
|||
} else {
|
||||
const newFolderIsOldFolder = resources.extUriIgnorePathCase.isEqual(this.currentFolder, valueUri);
|
||||
const newFolderIsSubFolder = resources.extUriIgnorePathCase.isEqual(this.currentFolder, resources.dirname(valueUri));
|
||||
const newFolderIsParent = !newFolderIsOldFolder && resources.extUriIgnorePathCase.isEqualOrParent(this.currentFolder, resources.dirname(valueUri));
|
||||
const newFolderIsUnrelated = !newFolderIsOldFolder && !newFolderIsParent && !newFolderIsSubFolder;
|
||||
if (this.endsWithSlash(value) || newFolderIsParent || newFolderIsUnrelated) {
|
||||
const newFolderIsParent = resources.extUriIgnorePathCase.isEqualOrParent(this.currentFolder, resources.dirname(valueUri));
|
||||
const newFolderIsUnrelated = !newFolderIsParent && !newFolderIsSubFolder;
|
||||
if (!newFolderIsOldFolder && (this.endsWithSlash(value) || newFolderIsParent || newFolderIsUnrelated)) {
|
||||
let stat: IFileStatWithPartialMetadata | undefined;
|
||||
try {
|
||||
stat = await this.fileService.stat(valueUri);
|
||||
|
|
Loading…
Reference in a new issue