Skip to content

Commit e520a1b

Browse files
committed
make sure all, not some, decorations are unused before removing its css rule, microsoft#81467
1 parent 2966f6f commit e520a1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/services/decorations/browser/decorationsService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class DecorationStyles extends Disposable {
172172
if (value.isUnused()) {
173173
let remove: boolean = false;
174174
if (Array.isArray(data)) {
175-
remove = data.some(data => !usedDecorations.has(DecorationRule.keyOf(data)));
175+
remove = data.every(data => !usedDecorations.has(DecorationRule.keyOf(data)));
176176
} else if (!usedDecorations.has(DecorationRule.keyOf(data))) {
177177
remove = true;
178178
}

0 commit comments

Comments
 (0)