Revert "clearNode should use replaceChildren (#157169)"

This reverts commit 85c03e0238.
This commit is contained in:
Johannes
2022-08-23 14:44:25 +02:00
parent a051032930
commit 4c567d14cb

View File

@@ -19,7 +19,9 @@ import { withNullAsUndefined } from 'vs/base/common/types';
import { URI } from 'vs/base/common/uri';
export function clearNode(node: HTMLElement): void {
node.replaceChildren();
while (node.firstChild) {
node.firstChild.remove();
}
}
/**