提交 7fad59dd 编写于 作者: B Benjamin Pasero

fix #22604

上级 164a677f
......@@ -290,12 +290,16 @@ export class FileChangesEvent extends events.Event {
}
}
export function isEqual(path1: string, path2: string) {
export function isEqual(path1: string, path2: string): boolean {
const identityEquals = (path1 === path2);
if (isLinux || identityEquals) {
return identityEquals;
}
if (path1.length !== path2.length) {
return false;
}
return path1.toLowerCase() === path2.toLowerCase();
}
......
......@@ -396,6 +396,10 @@ export class ExplorerView extends CollapsibleViewletView {
}
private onFileOperation(e: FileOperationEvent): void {
if (!this.root) {
return; // ignore if not yet created
}
let modelElement: FileStat;
let parent: FileStat;
let parentResource: URI;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册