Setting variable line height and font setting options to false for simple editors (#253626)

setting options to false for simple editor
This commit is contained in:
Aiday Marlen Kyzy
2025-07-02 14:03:31 +02:00
committed by GitHub
parent 70fa275852
commit 2a4faa2c6d
4 changed files with 3 additions and 3 deletions
@@ -49,6 +49,9 @@ export function getSimpleEditorOptions(configurationService: IConfigurationServi
cursorBlinking: configurationService.getValue<'blink' | 'smooth' | 'phase' | 'expand' | 'solid'>('editor.cursorBlinking'),
editContext: configurationService.getValue<boolean>('editor.editContext'),
defaultColorDecorators: 'never',
allowVariableLineHeights: false,
allowVariableFonts: false,
allowVariableFontsInAccessibilityMode: false,
};
}
@@ -421,7 +421,6 @@ export class BreakpointWidget extends ZoneWidget implements IPrivateBreakpointWi
options.lineHeight = editorConfig.lineHeight;
options.fontLigatures = editorConfig.fontLigatures;
options.ariaLabel = this.placeholder;
options.allowVariableLineHeights = false;
return options;
}
@@ -737,7 +737,6 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget {
const config = this.configurationService.getValue<IDebugConfiguration>('debug');
options.acceptSuggestionOnEnter = config.console.acceptSuggestionOnEnter === 'on' ? 'on' : 'off';
options.ariaLabel = this.getAriaLabel();
options.allowVariableLineHeights = false;
this.replInput = this.scopedInstantiationService.createInstance(CodeEditorWidget, this.replInputContainer, options, getSimpleCodeEditorWidgetOptions());
@@ -1561,7 +1561,6 @@ class SCMInputWidgetEditorOptions {
return {
...getSimpleEditorOptions(this.configurationService),
...this.getEditorOptions(),
allowVariableLineHeights: false,
dragAndDrop: true,
dropIntoEditor: { enabled: true },
formatOnType: true,