Skip to content

Commit

Permalink
fix(monaco-editor): reduce re-render debounce time
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Mar 14, 2023
1 parent e0a13db commit ff4a42a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class EoMonacoEditorComponent implements AfterViewInit, OnInit, OnChanges
this.el.style.removeProperty('overflow');
});
}
}, 600)
}, 20)
);
this.resizeObserver.observe(this.el);
}
Expand Down Expand Up @@ -228,7 +228,7 @@ export class EoMonacoEditorComponent implements AfterViewInit, OnInit, OnChanges
}

this.codeEdtor.onDidChangeModelContent(e => {
console.log('e', e);
// console.log('e', e);
this.handleChange();
});

Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12872,11 +12872,6 @@ posix-character-classes@^0.1.0:
resolved "https://registry.npmmirror.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==

[email protected]:
version "0.0.2"
resolved "https://registry.npmmirror.com/postcat-basic-auth/-/postcat-basic-auth-0.0.2.tgz#ade11c3544e00561b1d7036fe22fb0361ceb6fec"
integrity sha512-Cvtz6kP/2cvZEXOYvWJu1+yC0YtU5JTeQZ3vPEFKwDk6d7A+rOmScbZEYCDuNkoXMPllU398Tn38ByiFLeB7Eg==

[email protected]:
version "1.0.0"
resolved "https://registry.npmmirror.com/postcat-sync-swagger/-/postcat-sync-swagger-1.0.0.tgz#36cb157e127d8cfb870d363c0b66afe04b92b387"
Expand Down

0 comments on commit ff4a42a

Please sign in to comment.