Skip to content

Commit bbdd7e7

Browse files
committed
Don't return an override if there are no custom editors
Fixes microsoft#97271
1 parent d996bb1 commit bbdd7e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/workbench/contrib/customEditor/browser/customEditors.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ export class CustomEditorContribution extends Disposable implements IWorkbenchCo
431431
const currentEditor = group?.editors.find(editor => isEqual(editor.resource, resource));
432432

433433
const customEditors = this.customEditorService.getAllCustomEditors(resource);
434+
if (!customEditors.length) {
435+
return [];
436+
}
437+
434438
return [
435439
{
436440
...defaultEditorOverrideEntry,

0 commit comments

Comments
 (0)