mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 23:32:36 -05:00
editor association should override priority.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user