File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/customEditor/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -443,14 +443,16 @@ export class CustomEditorContribution extends Disposable implements IWorkbenchCo
443443 ...defaultEditorOverrideEntry ,
444444 active : currentEditor instanceof FileEditorInput ,
445445 } ,
446- ...customEditors . allEditors . map ( entry => {
447- return {
448- id : entry . id ,
449- active : currentEditor instanceof CustomEditorInput && currentEditor . viewType === entry . id ,
450- label : entry . displayName ,
451- detail : entry . providerDisplayName ,
452- } ;
453- } )
446+ ...customEditors . allEditors
447+ . filter ( entry => entry . id !== defaultCustomEditor . id )
448+ . map ( entry => {
449+ return {
450+ id : entry . id ,
451+ active : currentEditor instanceof CustomEditorInput && currentEditor . viewType === entry . id ,
452+ label : entry . displayName ,
453+ detail : entry . providerDisplayName ,
454+ } ;
455+ } )
454456 ] ;
455457 }
456458 } ) ) ;
You can’t perform that action at this time.
0 commit comments