mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +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,
|
id?: string,
|
||||||
): IOpenEditorOverride | undefined {
|
): IOpenEditorOverride | undefined {
|
||||||
if (editor instanceof CustomEditorInput) {
|
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
|
// No need to do anything
|
||||||
return undefined;
|
return undefined;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user