@@ -17,13 +17,11 @@ import { StringBuilder } from 'vs/editor/common/core/stringBuilder';
17
17
import { IModelDeltaDecoration , InjectedTextCursorStops , PositionAffinity } from 'vs/editor/common/model' ;
18
18
import { ILanguageIdCodec } from 'vs/editor/common/languages' ;
19
19
import { ILanguageService } from 'vs/editor/common/languages/language' ;
20
- import { ghostTextBackground , ghostTextBorder , ghostTextForeground } from 'vs/editor/common/core/editorColorRegistry' ;
21
20
import { LineDecoration } from 'vs/editor/common/viewLayout/lineDecorations' ;
22
21
import { RenderLineInput , renderViewLine } from 'vs/editor/common/viewLayout/viewLineRenderer' ;
23
22
import { InlineDecorationType } from 'vs/editor/common/viewModel' ;
24
23
import { GhostTextReplacement , GhostTextWidgetModel } from 'vs/editor/contrib/inlineCompletions/browser/ghostText' ;
25
24
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
26
- import { registerThemingParticipant } from 'vs/platform/theme/common/themeService' ;
27
25
28
26
const ttPolicy = window . trustedTypes ?. createPolicy ( 'editorGhostText' , { createHTML : value => value } ) ;
29
27
@@ -437,26 +435,3 @@ class ViewMoreLinesContentWidget extends Disposable implements IContentWidget {
437
435
}
438
436
}
439
437
440
- registerThemingParticipant ( ( theme , collector ) => {
441
- const foreground = theme . getColor ( ghostTextForeground ) ;
442
- if ( foreground ) {
443
- // `!important` ensures that other decorations don't cause a style conflict (#132017).
444
- collector . addRule ( `.monaco-editor .ghost-text-decoration { color: ${ foreground . toString ( ) } !important; }` ) ;
445
- collector . addRule ( `.monaco-editor .ghost-text-decoration-preview { color: ${ foreground . toString ( ) } !important; }` ) ;
446
- collector . addRule ( `.monaco-editor .suggest-preview-text .ghost-text { color: ${ foreground . toString ( ) } !important; }` ) ;
447
- }
448
-
449
- const background = theme . getColor ( ghostTextBackground ) ;
450
- if ( background ) {
451
- collector . addRule ( `.monaco-editor .ghost-text-decoration { background-color: ${ background . toString ( ) } ; }` ) ;
452
- collector . addRule ( `.monaco-editor .ghost-text-decoration-preview { background-color: ${ background . toString ( ) } ; }` ) ;
453
- collector . addRule ( `.monaco-editor .suggest-preview-text .ghost-text { background-color: ${ background . toString ( ) } ; }` ) ;
454
- }
455
-
456
- const border = theme . getColor ( ghostTextBorder ) ;
457
- if ( border ) {
458
- collector . addRule ( `.monaco-editor .suggest-preview-text .ghost-text { border: 1px solid ${ border } ; }` ) ;
459
- collector . addRule ( `.monaco-editor .ghost-text-decoration { border: 1px solid ${ border } ; }` ) ;
460
- collector . addRule ( `.monaco-editor .ghost-text-decoration-preview { border: 1px solid ${ border } ; }` ) ;
461
- }
462
- } ) ;
0 commit comments