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

Don't return an override if there are no custom editors

Fixes #97271
上级 d996bb1d
......@@ -431,6 +431,10 @@ export class CustomEditorContribution extends Disposable implements IWorkbenchCo
const currentEditor = group?.editors.find(editor => isEqual(editor.resource, resource));
const customEditors = this.customEditorService.getAllCustomEditors(resource);
if (!customEditors.length) {
return [];
}
return [
{
...defaultEditorOverrideEntry,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册