diff --git a/packages/console/src/browser/console-widget.ts b/packages/console/src/browser/console-widget.ts index 3e8a5384793f2..dc62f9994933c 100644 --- a/packages/console/src/browser/console-widget.ts +++ b/packages/console/src/browser/console-widget.ts @@ -110,10 +110,11 @@ export class ConsoleWidget extends BaseWidget implements StatefulWidget { this.toDispose.push(input); this.toDispose.push(input.getControl().onDidLayoutChange(() => this.resizeContent())); - // todo update font if fontInfo was changed only - // it's impossible at the moment, but will be fixed for next upgrade of monaco version - // see https://github.com/microsoft/vscode/commit/5084e8ca1935698c98c163e339ca664818786c6d - this.toDispose.push(input.getControl().onDidChangeConfiguration(() => this.updateFont())); + this.toDispose.push(input.getControl().onDidChangeConfiguration(event => { + if (event.hasChanged(monaco.editor.EditorOption.fontInfo)) { + this.updateFont(); + } + })); this.updateFont(); if (inputFocusContextKey) {