Skip to content

Commit 6be6bd9

Browse files
committed
Make sure openWith handles default editors
Fixes microsoft#99252 We still need to override openeing of 'default' editors so that we properly close any already open custom editors in the group
1 parent aa0c351 commit 6be6bd9

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,6 @@ export class CustomEditorContribution extends Disposable implements IWorkbenchCo
498498
}
499499

500500
if (id) {
501-
if (editor instanceof FileEditorInput && id === defaultCustomEditor.id) {
502-
return undefined;
503-
}
504-
505501
return {
506502
override: this.customEditorService.openWith(resource, id, { ...options, ignoreOverrides: true }, group)
507503
};

0 commit comments

Comments
 (0)