From 69acdd4e14228d083ceb2fa7fa7c50f7bcf12727 Mon Sep 17 00:00:00 2001 From: rebornix Date: Wed, 17 Jun 2020 19:49:25 -0700 Subject: [PATCH] editor association should override priority. --- .../contrib/notebook/browser/notebook.contribution.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts index 136cf7af2ec..02072787b0e 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts @@ -270,8 +270,8 @@ export class NotebookContribution extends Disposable implements IWorkbenchContri const associatedEditors = distinct([ ...this.getUserAssociatedNotebookEditors(notebookUri), - ...this.getContributedEditors(notebookUri) - ], editor => editor.id).filter(editor => editor.priority === NotebookEditorPriority.default); + ...(this.getContributedEditors(notebookUri).filter(editor => editor.priority === NotebookEditorPriority.default)) + ], editor => editor.id); if (!associatedEditors.length) { // there is no notebook editor contribution which is enabled by default