@@ -29,7 +29,7 @@ import { CONTEXT_CUSTOM_EDITORS, CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE, Cust
2929import { CustomEditorModelManager } from 'vs/workbench/contrib/customEditor/common/customEditorModelManager' ;
3030import { IWebviewService , webviewHasOwnEditFunctionsContext } from 'vs/workbench/contrib/webview/browser/webview' ;
3131import { IEditorGroup , IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService' ;
32- import { CustomEditorAssociation , CustomEditorsAssociations , customEditorsAssociationsSettingId , defaultEditorOverrideEntry } from 'vs/workbench/services/editor/common/editorOpenWith' ;
32+ import { CustomEditorAssociation , CustomEditorsAssociations , customEditorsAssociationsSettingId } from 'vs/workbench/services/editor/common/editorOpenWith' ;
3333import { ICustomEditorInfo , ICustomEditorViewTypesHandler , IEditorService , IOpenEditorOverride , IOpenEditorOverrideEntry } from 'vs/workbench/services/editor/common/editorService' ;
3434import { ContributedCustomEditors , defaultCustomEditor } from '../common/contributedCustomEditors' ;
3535import { CustomEditorInput } from './customEditorInput' ;
@@ -454,11 +454,6 @@ export class CustomEditorContribution extends Disposable implements IWorkbenchCo
454454 getEditorOverrides : ( resource : URI , options : IEditorOptions | undefined , group : IEditorGroup | undefined ) : IOpenEditorOverrideEntry [ ] => {
455455 const currentEditor = group ?. editors . find ( editor => isEqual ( editor . resource , resource ) ) ;
456456
457- const defaultEditorOverride : IOpenEditorOverrideEntry = {
458- ...defaultEditorOverrideEntry ,
459- active : this . _fileEditorInputFactory . isFileEditorInput ( currentEditor ) ,
460- } ;
461-
462457 const toOverride = ( entry : CustomEditorInfo ) : IOpenEditorOverrideEntry => {
463458 return {
464459 id : entry . id ,
@@ -470,11 +465,6 @@ export class CustomEditorContribution extends Disposable implements IWorkbenchCo
470465
471466 if ( typeof options ?. override === 'string' ) {
472467 // A specific override was requested. Only return it.
473-
474- if ( options . override === defaultEditorOverride . id ) {
475- return [ defaultEditorOverride ] ;
476- }
477-
478468 const matchingEditor = this . customEditorService . getCustomEditor ( options . override ) ;
479469 return matchingEditor ? [ toOverride ( matchingEditor ) ] : [ ] ;
480470 }
@@ -485,12 +475,9 @@ export class CustomEditorContribution extends Disposable implements IWorkbenchCo
485475 return [ ] ;
486476 }
487477
488- return [
489- defaultEditorOverride ,
490- ...customEditors . allEditors
491- . filter ( entry => entry . id !== defaultCustomEditor . id )
492- . map ( toOverride )
493- ] ;
478+ return customEditors . allEditors
479+ . filter ( entry => entry . id !== defaultCustomEditor . id )
480+ . map ( toOverride ) ;
494481 }
495482 } ) ) ;
496483 }
0 commit comments