From ff4a42a74ece694e4eda10153d818c0224465304 Mon Sep 17 00:00:00 2001 From: buqiyuan <1743369777@qq.com> Date: Tue, 14 Mar 2023 23:30:17 +0800 Subject: [PATCH] fix(monaco-editor): reduce re-render debounce time --- .../eo-ui/monaco-editor/monaco-editor.component.ts | 4 ++-- yarn.lock | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/browser/src/app/components/eo-ui/monaco-editor/monaco-editor.component.ts b/src/browser/src/app/components/eo-ui/monaco-editor/monaco-editor.component.ts index f31a7349c..6b6f88537 100644 --- a/src/browser/src/app/components/eo-ui/monaco-editor/monaco-editor.component.ts +++ b/src/browser/src/app/components/eo-ui/monaco-editor/monaco-editor.component.ts @@ -133,7 +133,7 @@ export class EoMonacoEditorComponent implements AfterViewInit, OnInit, OnChanges this.el.style.removeProperty('overflow'); }); } - }, 600) + }, 20) ); this.resizeObserver.observe(this.el); } @@ -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(); }); diff --git a/yarn.lock b/yarn.lock index 6ac171e0d..5d2549ffa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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== -postcat-basic-auth@0.0.2: - 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== - postcat-sync-swagger@1.0.0: version "1.0.0" resolved "https://registry.npmmirror.com/postcat-sync-swagger/-/postcat-sync-swagger-1.0.0.tgz#36cb157e127d8cfb870d363c0b66afe04b92b387"