Skip to content

Commit ecc5c8e

Browse files
authored
Hide editor icons when editor is not a notebook (#12934) (#12935)
1 parent 656fb61 commit ecc5c8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,19 +869,19 @@
869869
"command": "python.datascience.notebookeditor.restartkernel",
870870
"title": "%python.command.python.datascience.restartkernel.title%",
871871
"group": "navigation",
872-
"when": "notebookViewType == jupyter-notebook"
872+
"when": "resourceLangId == jupyter && notebookViewType == 'jupyter-notebook'"
873873
},
874874
{
875875
"command": "python.datascience.notebookeditor.trust",
876876
"title": "%DataScience.trustNotebookCommandTitle%",
877877
"group": "navigation@1",
878-
"when": "notebookViewType == jupyter-notebook && !python.datascience.isnotebooktrusted && python.datascience.trustfeatureenabled"
878+
"when": "resourceLangId == jupyter && notebookViewType == 'jupyter-notebook' && !python.datascience.isnotebooktrusted && python.datascience.trustfeatureenabled"
879879
},
880880
{
881881
"command": "python.datascience.export",
882882
"title": "%DataScience.notebookExportAs%",
883883
"group": "navigation",
884-
"when": "notebookViewType == jupyter-notebook"
884+
"when": "resourceLangId == jupyter && notebookViewType == 'jupyter-notebook'"
885885
}
886886
],
887887
"explorer/context": [

0 commit comments

Comments
 (0)