mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Fix default custom editors no opening properly
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user