Skip to content

Commit 5946155

Browse files
committed
use language for hover, markdown for notebook output
1 parent d205ce0 commit 5946155

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class HoverAccessibleViewContribution extends Disposable {
117117
if (!editorHoverContent) {
118118
return false;
119119
}
120+
this._options.language = editor?.getModel()?.getLanguageId() ?? undefined;
120121
accessibleViewService.show({
121122
verbositySettingKey: AccessibilityVerbositySettingId.Hover,
122123
provideContent() { return editorHoverContent; },

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ export function showAccessibleOutput(accessibleViewService: IAccessibleViewServi
116116
},
117117
options: {
118118
ariaLabel: localize('NotebookCellOutputAccessibleView', "Notebook Cell Output Accessible View"),
119-
language: 'plaintext',
120119
type: AccessibleViewType.View
121120
}
122121
});

0 commit comments

Comments
 (0)