Skip to content

Commit 69acdd4

Browse files
committed
editor association should override priority.
1 parent e51bb9b commit 69acdd4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ export class NotebookContribution extends Disposable implements IWorkbenchContri
270270

271271
const associatedEditors = distinct([
272272
...this.getUserAssociatedNotebookEditors(notebookUri),
273-
...this.getContributedEditors(notebookUri)
274-
], editor => editor.id).filter(editor => editor.priority === NotebookEditorPriority.default);
273+
...(this.getContributedEditors(notebookUri).filter(editor => editor.priority === NotebookEditorPriority.default))
274+
], editor => editor.id);
275275

276276
if (!associatedEditors.length) {
277277
// there is no notebook editor contribution which is enabled by default

0 commit comments

Comments
 (0)