File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ class DefaultClient implements Client {
399
399
//Apply text decorations to inactive regions
400
400
for ( let e of editors ) {
401
401
let valuePair : DecorationRangesPair = this . inactiveRegionsDecorations . get ( e . document . uri . toString ( ) ) ;
402
- if ( valuePair !== undefined ) {
402
+ if ( valuePair ) {
403
403
e . setDecorations ( valuePair . decoration , valuePair . ranges ) ; // VSCode clears the decorations when the text editor becomes invisible
404
404
}
405
405
}
@@ -653,7 +653,7 @@ class DefaultClient implements Client {
653
653
654
654
// Recycle the active text decorations when we receive a new set of inactive regions
655
655
let valuePair : DecorationRangesPair = this . inactiveRegionsDecorations . get ( params . uri ) ;
656
- if ( valuePair !== undefined ) {
656
+ if ( valuePair ) {
657
657
// Disposing of and resetting the decoration will undo previously applied text decorations
658
658
valuePair . decoration . dispose ( ) ;
659
659
valuePair . decoration = decoration ;
You can’t perform that action at this time.
0 commit comments