Skip to content

Commit 8451eb5

Browse files
authored
Merge pull request microsoft#188961 from microsoft/aamunger/accessibilityView
only show accessbility view for ipynb files
2 parents f3a548d + 29e2676 commit 8451eb5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ import { AccessibilityHelpAction, AccessibleViewAction } from 'vs/workbench/cont
116116
import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_OUTPUT_FOCUSED } from 'vs/workbench/contrib/notebook/common/notebookContextKeys';
117117
import { runAccessibilityHelpAction, showAccessibleOutput } from 'vs/workbench/contrib/notebook/browser/notebookAccessibility';
118118
import { IAccessibleViewService } from 'vs/workbench/contrib/accessibility/browser/accessibleView';
119+
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
119120

120121
/*--------------------------------------------------------------------------------------------- */
121122

@@ -699,7 +700,9 @@ class NotebookAccessibleViewContribution extends Disposable {
699700
const editorService = accessor.get(IEditorService);
700701

701702
return showAccessibleOutput(accessibleViewService, editorService);
702-
}, NOTEBOOK_OUTPUT_FOCUSED));
703+
},
704+
ContextKeyExpr.and(NOTEBOOK_OUTPUT_FOCUSED, ContextKeyExpr.equals('resourceExtname', '.ipynb'))
705+
));
703706
}
704707
}
705708

0 commit comments

Comments
 (0)