Remove duplicated code

This commit is contained in:
Matt Bierner 2021-04-09 17:38:58 -07:00
parent 2637da856a
commit ab4c0f1e2e
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -140,14 +140,7 @@ function webviewPreloads() {
update(id: string, height: number, options: { init?: boolean; isOutput?: boolean }) {
if (!this.pending.size) {
setTimeout(() => {
if (!this.pending.size) {
return;
}
postNotebookMessage<IDimensionMessage>('dimension', {
updates: Array.from(this.pending.values())
});
this.pending.clear();
this.updateImmediately();
}, 0);
}
this.pending.set(id, {