Fix #186473. Hide select kernel action from f1 when active editor is not notebook. (#186534)

This commit is contained in:
Peng Lyu 2023-06-28 11:27:36 -07:00 committed by GitHub
parent 74065aada5
commit 63ce9c034f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,7 @@ registerAction2(class extends Action2 {
title: { value: localize('notebookActions.selectKernel', "Select Notebook Kernel"), original: 'Select Notebook Kernel' },
icon: selectKernelIcon,
f1: true,
precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
menu: [{
id: MenuId.EditorTitle,
when: ContextKeyExpr.and(