Skip to content

Commit 3d04348

Browse files
committed
1 parent afe68c6 commit 3d04348

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/vs/editor/browser/widget/diffEditorWidget.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
286286
renderOverviewRuler: true,
287287
diffWordWrap: 'inherit',
288288
diffAlgorithm: 'advanced',
289-
accessibilityVerbose: true
289+
accessibilityVerbose: false
290290
});
291291

292292
if (typeof options.isInEmbeddedEditor !== 'undefined') {
@@ -2796,6 +2796,7 @@ function changedDiffEditorOptions(a: ValidDiffEditorBaseOptions, b: ValidDiffEdi
27962796
renderOverviewRuler: (a.renderOverviewRuler !== b.renderOverviewRuler),
27972797
diffWordWrap: (a.diffWordWrap !== b.diffWordWrap),
27982798
diffAlgorithm: (a.diffAlgorithm !== b.diffAlgorithm),
2799+
accessibilityVerbose: (a.accessibilityVerbose !== b.accessibilityVerbose),
27992800
};
28002801
}
28012802

src/vs/workbench/contrib/notebook/browser/diff/diffComponents.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ abstract class AbstractElementRenderer extends Disposable {
615615
dimension: {
616616
height: Math.min(OUTPUT_EDITOR_HEIGHT_MAGIC, this.cell.layoutInfo.rawOutputHeight || lineHeight * lineCount),
617617
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true)
618-
}
618+
},
619+
accessibilityVerbose: this.configurationService.getValue<boolean>('accessibility.verbosity.diff-editor') ?? false
619620
}, {
620621
originalEditor: getOptimizedNestedCodeEditorWidgetOptions(),
621622
modifiedEditor: getOptimizedNestedCodeEditorWidgetOptions()
@@ -1424,7 +1425,8 @@ export class ModifiedElement extends AbstractElementRenderer {
14241425
dimension: {
14251426
height: OUTPUT_EDITOR_HEIGHT_MAGIC,
14261427
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true)
1427-
}
1428+
},
1429+
accessibilityVerbose: this.configurationService.getValue<boolean>('accessibility.verbosity.diff-editor') ?? false
14281430
}, {
14291431
originalEditor: getOptimizedNestedCodeEditorWidgetOptions(),
14301432
modifiedEditor: getOptimizedNestedCodeEditorWidgetOptions()

0 commit comments

Comments
 (0)