提交 ef0d70f1 编写于 作者: B Benjamin Pasero

Windows: rename casing of file shows "file deleted on disk" in editor tab (fixes #23750)

上级 db482352
......@@ -129,14 +129,10 @@ export class TextFileEditorModel extends BaseTextEditorModel implements ITextFil
private onFileChanges(e: FileChangesEvent): void {
// Handle added if we are in orphan mode
if (this.inOrphanMode && e.contains(this.resource, FileChangeType.ADDED)) {
this.setOrphaned(false);
}
// Handle deletes
if (!this.inOrphanMode && e.contains(this.resource, FileChangeType.DELETED)) {
this.setOrphaned(true);
// Track ADD and DELETES for updates of this model to orphan-mode
const newInOrphanMode = e.contains(this.resource, FileChangeType.DELETED) && !e.contains(this.resource, FileChangeType.ADDED);
if (this.inOrphanMode !== newInOrphanMode) {
this.setOrphaned(newInOrphanMode);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册