@@ -29,7 +29,7 @@ import { NotebookEditor } from 'vs/workbench/contrib/notebook/browser/notebookEd
29
29
import { NotebookEditorInput , NotebookEditorInputOptions } from 'vs/workbench/contrib/notebook/common/notebookEditorInput' ;
30
30
import { INotebookService } from 'vs/workbench/contrib/notebook/common/notebookService' ;
31
31
import { NotebookService } from 'vs/workbench/contrib/notebook/browser/services/notebookServiceImpl' ;
32
- import { CellKind , CellUri , IResolvedNotebookEditorModel , NotebookWorkingCopyTypeIdentifier , NotebookSetting , ICellOutput , ICell } from 'vs/workbench/contrib/notebook/common/notebookCommon' ;
32
+ import { NOTEBOOK_EDITOR_ID , CellKind , CellUri , IResolvedNotebookEditorModel , NotebookWorkingCopyTypeIdentifier , NotebookSetting , ICellOutput , ICell } from 'vs/workbench/contrib/notebook/common/notebookCommon' ;
33
33
import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
34
34
import { IUndoRedoService } from 'vs/platform/undoRedo/common/undoRedo' ;
35
35
import { INotebookEditorModelResolverService } from 'vs/workbench/contrib/notebook/common/notebookEditorModelResolverService' ;
@@ -116,6 +116,7 @@ import { AccessibilityHelpAction, AccessibleViewAction } from 'vs/workbench/cont
116
116
import { NOTEBOOK_IS_ACTIVE_EDITOR , NOTEBOOK_OUTPUT_FOCUSED } from 'vs/workbench/contrib/notebook/common/notebookContextKeys' ;
117
117
import { runAccessibilityHelpAction , showAccessibleOutput } from 'vs/workbench/contrib/notebook/browser/notebookAccessibility' ;
118
118
import { IAccessibleViewService } from 'vs/workbench/contrib/accessibility/browser/accessibleView' ;
119
+ import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey' ;
119
120
120
121
/*--------------------------------------------------------------------------------------------- */
121
122
@@ -699,7 +700,9 @@ class NotebookAccessibleViewContribution extends Disposable {
699
700
const editorService = accessor . get ( IEditorService ) ;
700
701
701
702
return showAccessibleOutput ( accessibleViewService , editorService ) ;
702
- } , NOTEBOOK_OUTPUT_FOCUSED ) ) ;
703
+ } ,
704
+ ContextKeyExpr . and ( NOTEBOOK_OUTPUT_FOCUSED , ContextKeyExpr . equals ( 'resourceExtname' , '.ipynb' ) )
705
+ ) ) ;
703
706
}
704
707
}
705
708
0 commit comments