Skip to content

Commit 2a4faa2

Browse files
authored
Setting variable line height and font setting options to false for simple editors (microsoft#253626)
setting options to false for simple editor
1 parent 70fa275 commit 2a4faa2

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ export function getSimpleEditorOptions(configurationService: IConfigurationServi
4949
cursorBlinking: configurationService.getValue<'blink' | 'smooth' | 'phase' | 'expand' | 'solid'>('editor.cursorBlinking'),
5050
editContext: configurationService.getValue<boolean>('editor.editContext'),
5151
defaultColorDecorators: 'never',
52+
allowVariableLineHeights: false,
53+
allowVariableFonts: false,
54+
allowVariableFontsInAccessibilityMode: false,
5255
};
5356
}
5457

src/vs/workbench/contrib/debug/browser/breakpointWidget.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
421421
options.lineHeight = editorConfig.lineHeight;
422422
options.fontLigatures = editorConfig.fontLigatures;
423423
options.ariaLabel = this.placeholder;
424-
options.allowVariableLineHeights = false;
425424
return options;
426425
}
427426

src/vs/workbench/contrib/debug/browser/repl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,6 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget {
737737
const config = this.configurationService.getValue<IDebugConfiguration>('debug');
738738
options.acceptSuggestionOnEnter = config.console.acceptSuggestionOnEnter === 'on' ? 'on' : 'off';
739739
options.ariaLabel = this.getAriaLabel();
740-
options.allowVariableLineHeights = false;
741740

742741
this.replInput = this.scopedInstantiationService.createInstance(CodeEditorWidget, this.replInputContainer, options, getSimpleCodeEditorWidgetOptions());
743742

src/vs/workbench/contrib/scm/browser/scmViewPane.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,6 @@ class SCMInputWidgetEditorOptions {
15611561
return {
15621562
...getSimpleEditorOptions(this.configurationService),
15631563
...this.getEditorOptions(),
1564-
allowVariableLineHeights: false,
15651564
dragAndDrop: true,
15661565
dropIntoEditor: { enabled: true },
15671566
formatOnType: true,

0 commit comments

Comments
 (0)