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
6868 code,
6969 message : errorMessage ,
7070 } ) ;
71- } else {
72- sendInfo ( "" , {
73- name : "lsp" ,
74- kind : escapeLspRequestName ( traceEvent . type ) ,
75- duration : Math . trunc ( traceEvent . duration ) ,
76- } ) ;
71+ return ;
7772 }
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+ } ) ;
7886 }
7987 } ) ;
8088
You can’t perform that action at this time.
0 commit comments