File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,21 @@ async function checkJavaExtActivated(_context: vscode.ExtensionContext): Promise
68
68
code,
69
69
message : errorMessage ,
70
70
} ) ;
71
- } else {
72
- sendInfo ( "" , {
73
- name : "lsp" ,
74
- kind : escapeLspRequestName ( traceEvent . type ) ,
75
- duration : Math . trunc ( traceEvent . duration ) ,
76
- } ) ;
71
+ return ;
77
72
}
73
+
74
+ // See https://github.com/redhat-developer/vscode-java/pull/3010
75
+ // to exclude the invalid completion requests.
76
+ if ( ! traceEvent . resultLength && traceEvent . type === "textDocument/completion" ) {
77
+ return ;
78
+ }
79
+
80
+ sendInfo ( "" , {
81
+ name : "lsp" ,
82
+ kind : escapeLspRequestName ( traceEvent . type ) ,
83
+ duration : Math . trunc ( traceEvent . duration ) ,
84
+ resultLength : traceEvent . resultLength ,
85
+ } ) ;
78
86
}
79
87
} ) ;
80
88
You can’t perform that action at this time.
0 commit comments