File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/components/lspInfoDialog Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,23 @@ let dialogInstance = null;
1111const lspLogs = new Map ( ) ;
1212const MAX_LOGS = 200 ;
1313const logListeners = new Set ( ) ;
14+ const IGNORED_LOG_PATTERNS = [
15+ / \$ \/ p r o g r e s s \b / i,
16+ / \b P r o g r e s s : / i,
17+ / \b w i n d o w \/ w o r k D o n e P r o g r e s s \/ c r e a t e \b / i,
18+ / \b A u t o - r e s p o n d e d t o w i n d o w \/ w o r k D o n e P r o g r e s s \/ c r e a t e \b / i,
19+ ] ;
20+
21+ function shouldIgnoreLog ( message ) {
22+ if ( typeof message !== "string" ) return false ;
23+ return IGNORED_LOG_PATTERNS . some ( ( pattern ) => pattern . test ( message ) ) ;
24+ }
1425
1526function addLspLog ( serverId , level , message , details = null ) {
27+ if ( shouldIgnoreLog ( message ) ) {
28+ return ;
29+ }
30+
1631 if ( ! lspLogs . has ( serverId ) ) {
1732 lspLogs . set ( serverId , [ ] ) ;
1833 }
You can’t perform that action at this time.
0 commit comments