提交 e520a1bc 编写于 作者: J Johannes Rieken

make sure all, not some, decorations are unused before removing its css rule, #81467

上级 2966f6f0
......@@ -172,7 +172,7 @@ class DecorationStyles extends Disposable {
if (value.isUnused()) {
let remove: boolean = false;
if (Array.isArray(data)) {
remove = data.some(data => !usedDecorations.has(DecorationRule.keyOf(data)));
remove = data.every(data => !usedDecorations.has(DecorationRule.keyOf(data)));
} else if (!usedDecorations.has(DecorationRule.keyOf(data))) {
remove = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册