Skip to content

Commit be1bae2

Browse files
committed
*Correctly* use guard
1 parent 0af3069 commit be1bae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ class DefaultClient implements Client {
655655
let valuePair: DecorationRangesPair = this.inactiveRegionsDecorations.get(params.uri);
656656
if (valuePair) {
657657
// The language server will send notifications regardless of whether the ranges have changed. Unfortunately we must check for changes ourselves
658-
if (this.isRangesEqual(valuePair.ranges, params.ranges)) {
658+
if (!this.isRangesEqual(valuePair.ranges, params.ranges)) {
659659
// Disposing of and resetting the decoration will undo previously applied text decorations
660660
valuePair.decoration.dispose();
661661
valuePair.decoration = decoration;

0 commit comments

Comments
 (0)