@@ -32,6 +32,7 @@ import { IEditorOptions } from 'vs/editor/common/config/editorOptions';
3232import { IPosition } from 'vs/editor/common/core/position' ;
3333import { IEditorWhitespace } from 'vs/editor/common/viewLayout/whitespaceComputer' ;
3434import { CoreEditorCommand } from 'vs/editor/common/controller/coreCommands' ;
35+ import { IThemeService } from 'vs/platform/theme/common/themeService' ;
3536
3637export abstract class CodeEditorWidget extends CommonCodeEditor implements editorBrowser . ICodeEditor {
3738
@@ -70,6 +71,7 @@ export abstract class CodeEditorWidget extends CommonCodeEditor implements edito
7071
7172 private _codeEditorService : ICodeEditorService ;
7273 private _commandService : ICommandService ;
74+ private _themeService : IThemeService ;
7375
7476 protected domElement : HTMLElement ;
7577 private _focusTracker : CodeEditorWidgetFocusTracker ;
@@ -87,11 +89,13 @@ export abstract class CodeEditorWidget extends CommonCodeEditor implements edito
8789 @IInstantiationService instantiationService : IInstantiationService ,
8890 @ICodeEditorService codeEditorService : ICodeEditorService ,
8991 @ICommandService commandService : ICommandService ,
90- @IContextKeyService contextKeyService : IContextKeyService
92+ @IContextKeyService contextKeyService : IContextKeyService ,
93+ @IThemeService themeService : IThemeService
9194 ) {
9295 super ( domElement , options , instantiationService , contextKeyService ) ;
9396 this . _codeEditorService = codeEditorService ;
9497 this . _commandService = commandService ;
98+ this . _themeService = themeService ;
9599
96100 this . _focusTracker = new CodeEditorWidgetFocusTracker ( domElement ) ;
97101 this . _focusTracker . onChage ( ( ) => {
@@ -426,6 +430,7 @@ export abstract class CodeEditorWidget extends CommonCodeEditor implements edito
426430 this . _view = new View (
427431 this . _commandService ,
428432 this . _configuration ,
433+ this . _themeService ,
429434 this . viewModel ,
430435 ( editorCommand : CoreEditorCommand , args : any ) => {
431436 if ( ! this . cursor ) {
0 commit comments