Fix default custom editors no opening properly

This commit is contained in:
Matt Bierner
2020-04-16 17:39:34 -07:00
parent 5426f5ff70
commit a565d7e2e8

View File

@@ -391,7 +391,7 @@ export class CustomEditorContribution extends Disposable implements IWorkbenchCo
id?: string,
): IOpenEditorOverride | undefined {
if (editor instanceof CustomEditorInput) {
if (editor.group === group.id && editor.viewType === id) {
if (editor.group === group.id && (editor.viewType === id || typeof id !== 'string')) {
// No need to do anything
return undefined;
} else {