Remove duplicated code
This commit is contained in:
parent
2637da856a
commit
ab4c0f1e2e
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue