From 8027b5036b1f6b6f93b248a137e2ba490b2a30c8 Mon Sep 17 00:00:00 2001 From: rebornix Date: Mon, 7 Nov 2022 09:52:10 -0800 Subject: [PATCH] fix default output font size --- src/vs/workbench/contrib/notebook/common/notebookOptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/notebook/common/notebookOptions.ts b/src/vs/workbench/contrib/notebook/common/notebookOptions.ts index 2aa4ca14cf8ce..6366103172980 100644 --- a/src/vs/workbench/contrib/notebook/common/notebookOptions.ts +++ b/src/vs/workbench/contrib/notebook/common/notebookOptions.ts @@ -141,7 +141,7 @@ export class NotebookOptions extends Disposable { const showFoldingControls = this._computeShowFoldingControlsOption(); // const { bottomToolbarGap, bottomToolbarHeight } = this._computeBottomToolbarDimensions(compactView, insertToolbarPosition, insertToolbarAlignment); const fontSize = this.configurationService.getValue('editor.fontSize'); - const outputFontSize = this.configurationService.getValue(NotebookSetting.outputFontSize); + const outputFontSize = this.configurationService.getValue(NotebookSetting.outputFontSize) || fontSize; const outputFontFamily = this.configurationService.getValue(NotebookSetting.outputFontFamily); const markupFontSize = this.configurationService.getValue(NotebookSetting.markupFontSize); const editorOptionsCustomizations = this.configurationService.getValue(NotebookSetting.cellEditorOptionsCustomizations); @@ -326,7 +326,7 @@ export class NotebookOptions extends Disposable { } if (outputFontSize) { - configuration.outputFontSize = this.configurationService.getValue(NotebookSetting.outputFontSize) ?? configuration.fontSize; + configuration.outputFontSize = this.configurationService.getValue(NotebookSetting.outputFontSize) || configuration.fontSize; } if (markupFontSize) {