@@ -204,6 +204,7 @@ class DefaultClient implements Client {
204
204
private crashTimes : number [ ] = [ ] ;
205
205
private failureMessageShown = new PersistentState < boolean > ( "DefaultClient.failureMessageShown" , false ) ;
206
206
private isSupported : boolean = true ;
207
+ private inactiveRegionsDecoration : vscode . TextEditorDecorationType ;
207
208
208
209
// The "model" that is displayed via the UI (status bar).
209
210
private model : ClientModel = {
@@ -627,23 +628,22 @@ class DefaultClient implements Client {
627
628
this . model . tagParserStatus . Value = notificationBody . status ;
628
629
}
629
630
630
- private decoration : vscode . TextEditorDecorationType ;
631
631
private updateInactiveRegions ( params : InactiveRegionParams ) : void {
632
632
let renderOptions : vscode . DecorationRenderOptions = {
633
- light : { color : "rgba(125,125,125,0 .0)" } ,
634
- dark : { color : "rgba(155,155,155,0 .0)" }
633
+ light : { color : "rgba(125,125,125,1 .0)" } ,
634
+ dark : { color : "rgba(155,155,155,1 .0)" }
635
635
} ;
636
636
637
637
// Recycle the active text decorations when we receive a new set of inactive regions
638
- if ( this . decoration !== undefined ) {
639
- this . decoration . dispose ( ) ;
638
+ if ( this . inactiveRegionsDecoration !== undefined ) {
639
+ this . inactiveRegionsDecoration . dispose ( ) ;
640
640
}
641
- this . decoration = vscode . window . createTextEditorDecorationType ( renderOptions ) ;
641
+ this . inactiveRegionsDecoration = vscode . window . createTextEditorDecorationType ( renderOptions ) ;
642
642
643
643
// Apply the decorations to all relevant editors
644
644
let editors : vscode . TextEditor [ ] = vscode . window . visibleTextEditors . filter ( e => e . document . uri . toString ( ) === params . uri ) ;
645
645
for ( let e of editors ) {
646
- e . setDecorations ( this . decoration , params . ranges ) ;
646
+ e . setDecorations ( this . inactiveRegionsDecoration , params . ranges ) ;
647
647
}
648
648
}
649
649
0 commit comments