@@ -19,12 +19,13 @@ import { IColorTheme, IThemeService } from 'vs/platform/theme/common/themeServic
19
19
import { CommentGlyphWidget } from 'vs/workbench/contrib/comments/browser/commentGlyphWidget' ;
20
20
import { ICommentService } from 'vs/workbench/contrib/comments/browser/commentService' ;
21
21
import { ICommentThreadWidget } from 'vs/workbench/contrib/comments/common/commentThreadWidget' ;
22
- import { EditorOption } from 'vs/editor/common/config/editorOptions' ;
22
+ import { EDITOR_FONT_DEFAULTS , EditorOption , IEditorOptions } from 'vs/editor/common/config/editorOptions' ;
23
23
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection' ;
24
24
import { CommentThreadWidget } from 'vs/workbench/contrib/comments/browser/commentThreadWidget' ;
25
25
import { ICellRange } from 'vs/workbench/contrib/notebook/common/notebookRange' ;
26
26
import { commentThreadStateBackgroundColorVar , commentThreadStateColorVar , getCommentThreadStateBorderColor } from 'vs/workbench/contrib/comments/browser/commentColors' ;
27
27
import { peekViewBorder } from 'vs/editor/contrib/peekView/browser/peekView' ;
28
+ import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
28
29
29
30
function getCommentThreadWidgetStateColor ( thread : languages . CommentThreadState | undefined , theme : IColorTheme ) : Color | undefined {
30
31
return getCommentThreadStateBorderColor ( thread , theme ) ?? theme . getColor ( peekViewBorder ) ;
@@ -126,7 +127,8 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
126
127
@IInstantiationService instantiationService : IInstantiationService ,
127
128
@IThemeService private themeService : IThemeService ,
128
129
@ICommentService private commentService : ICommentService ,
129
- @IContextKeyService contextKeyService : IContextKeyService
130
+ @IContextKeyService contextKeyService : IContextKeyService ,
131
+ @IConfigurationService private readonly configurationService : IConfigurationService
130
132
) {
131
133
super ( editor , { keepEditorSelection : true } ) ;
132
134
this . _contextKeyService = contextKeyService . createScoped ( this . domNode ) ;
@@ -223,7 +225,7 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
223
225
this . _commentThread as unknown as languages . CommentThread < IRange | ICellRange > ,
224
226
this . _pendingComment ,
225
227
this . _pendingEdits ,
226
- { editor : this . editor , codeBlockFontSize : '' } ,
228
+ { editor : this . editor , codeBlockFontSize : '' , codeBlockFontFamily : this . configurationService . getValue < IEditorOptions > ( 'editor' ) . fontFamily || EDITOR_FONT_DEFAULTS . fontFamily } ,
227
229
this . _commentOptions ,
228
230
{
229
231
actionRunner : ( ) => {
0 commit comments