提交 c057a4b9 编写于 作者: M Matt Bierner

Make sure we dispose of any custom editor inputs when replacing them

Fixes #81773
上级 a25c6e66
......@@ -179,6 +179,12 @@ export class CustomEditorService implements ICustomEditorService {
replacement: input,
options: options ? EditorOptions.create(options) : undefined,
}], group);
for (const editor of existingEditors) {
if (editor instanceof CustomFileEditorInput) {
editor.dispose();
}
}
}
}
return this.editorService.openEditor(input, options, group);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册