Skip to content

Commit ed87590

Browse files
authored
Merge pull request microsoft#136503 from microsoft/hediet/fix-136470
Fixes microsoft#136470 by not triggering on change when there was no change.
2 parents e877dd4 + 7b20e9f commit ed87590

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/editor/common/model/bracketPairs/bracketPairsImpl.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ export class BracketPairs extends Disposable implements IBracketPairs {
7575
this.onDidChangeEmitter.fire();
7676
}
7777
} else {
78-
this.cache.clear();
79-
this.onDidChangeEmitter.fire();
78+
if (this.cache.value) {
79+
this.cache.clear();
80+
this.onDidChangeEmitter.fire();
81+
}
8082
}
8183
}
8284

0 commit comments

Comments
 (0)