Skip to content

Commit

Permalink
fix #172465
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Apr 26, 2023
1 parent afe68c6 commit 3d04348
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/vs/editor/browser/widget/diffEditorWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
renderOverviewRuler: true,
diffWordWrap: 'inherit',
diffAlgorithm: 'advanced',
accessibilityVerbose: true
accessibilityVerbose: false
});

if (typeof options.isInEmbeddedEditor !== 'undefined') {
Expand Down Expand Up @@ -2796,6 +2796,7 @@ function changedDiffEditorOptions(a: ValidDiffEditorBaseOptions, b: ValidDiffEdi
renderOverviewRuler: (a.renderOverviewRuler !== b.renderOverviewRuler),
diffWordWrap: (a.diffWordWrap !== b.diffWordWrap),
diffAlgorithm: (a.diffAlgorithm !== b.diffAlgorithm),
accessibilityVerbose: (a.accessibilityVerbose !== b.accessibilityVerbose),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ abstract class AbstractElementRenderer extends Disposable {
dimension: {
height: Math.min(OUTPUT_EDITOR_HEIGHT_MAGIC, this.cell.layoutInfo.rawOutputHeight || lineHeight * lineCount),
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true)
}
},
accessibilityVerbose: this.configurationService.getValue<boolean>('accessibility.verbosity.diff-editor') ?? false
}, {
originalEditor: getOptimizedNestedCodeEditorWidgetOptions(),
modifiedEditor: getOptimizedNestedCodeEditorWidgetOptions()
Expand Down Expand Up @@ -1424,7 +1425,8 @@ export class ModifiedElement extends AbstractElementRenderer {
dimension: {
height: OUTPUT_EDITOR_HEIGHT_MAGIC,
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, true)
}
},
accessibilityVerbose: this.configurationService.getValue<boolean>('accessibility.verbosity.diff-editor') ?? false
}, {
originalEditor: getOptimizedNestedCodeEditorWidgetOptions(),
modifiedEditor: getOptimizedNestedCodeEditorWidgetOptions()
Expand Down

0 comments on commit 3d04348

Please sign in to comment.