diff --git a/src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts b/src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts index 2a323d76679..7220dbf1a4f 100644 --- a/src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts +++ b/src/vs/editor/contrib/markdownRenderer/browser/markdownRenderer.ts @@ -23,6 +23,7 @@ export interface IMarkdownRenderResult extends IDisposable { export interface IMarkdownRendererOptions { editor?: ICodeEditor; codeBlockFontFamily?: string; + codeBlockFontSize?: string; } /** @@ -93,6 +94,10 @@ export class MarkdownRenderer { element.style.fontFamily = this._options.codeBlockFontFamily; } + if (this._options.codeBlockFontSize !== undefined) { + element.style.fontSize = this._options.codeBlockFontSize; + } + return element; }, asyncRenderCallback: () => this._onDidRenderAsync.fire(), diff --git a/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts b/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts index 0e41198ccb2..c6a047179b0 100644 --- a/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts +++ b/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts @@ -193,7 +193,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget this._scopedInstantiationService, this._commentThread as unknown as languages.CommentThread, this._pendingComment, - { editor: this.editor }, + { editor: this.editor, codeBlockFontSize: '' }, this._commentOptions, { actionRunner: () => {