From d91209b3563fa386c31d023b2e54b2f636caf550 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Wed, 2 Oct 2019 14:13:01 -0700 Subject: [PATCH] Fix image views not being activated properly --- src/vs/workbench/contrib/customEditor/browser/customEditors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/customEditor/browser/customEditors.ts b/src/vs/workbench/contrib/customEditor/browser/customEditors.ts index 347a5eb3164..438566bb925 100644 --- a/src/vs/workbench/contrib/customEditor/browser/customEditors.ts +++ b/src/vs/workbench/contrib/customEditor/browser/customEditors.ts @@ -175,7 +175,7 @@ export class CustomEditorService implements ICustomEditorService { const existingEditors = group.editors.filter(editor => editor.getResource() && isEqual(editor.getResource()!, resource)); if (existingEditors.length) { const existing = existingEditors[0]; - if (existing.matches(input)) { + if (input.matches(existing)) { return; } -- GitLab