提交 ab529dcd 编写于 作者: I isidor

fixes #81852

上级 0f4875f5
......@@ -82,6 +82,7 @@ export class FileEditorInput extends EditorInput implements IFileEditorInput {
private onModelOrphanedChanged(e: TextFileModelChangeEvent): void {
if (e.resource.toString() === this.resource.toString()) {
FileEditorInput.MEMOIZER.clear();
this._onDidChangeLabel.fire();
}
}
......@@ -209,6 +210,7 @@ export class FileEditorInput extends EditorInput implements IFileEditorInput {
private decorateLabel(label: string): string {
const model = this.textFileService.models.get(this.resource);
if (model && model.hasState(ModelState.ORPHAN)) {
return localize('orphanedFile', "{0} (deleted)", label);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册