File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ async function traceLSPPerformance(javaExt: vscode.Extension<any>) {
153153 // See https://github.com/redhat-developer/vscode-java/pull/3010
154154 // to exclude the invalid completion requests.
155155 if ( ! traceEvent . resultLength && traceEvent . type === "textDocument/completion"
156- && ( ! traceEvent . data ?. triggerKind || traceEvent . data ?. triggerCharacter === ' ' ) ) {
156+ && ( traceEvent . data ?. triggerKind === undefined || traceEvent . data ?. triggerCharacter === ' ' ) ) {
157157 return ;
158158 }
159159
@@ -172,11 +172,8 @@ async function traceLSPPerformance(javaExt: vscode.Extension<any>) {
172172}
173173
174174function redactDataProperties ( data : any ) : string {
175- if ( data ?. triggerKind ) {
176- return JSON . stringify ( {
177- triggerKind : data . triggerKind ,
178- triggerCharacter : data . triggerCharacter ,
179- } ) ;
175+ if ( data ?. triggerKind !== undefined ) {
176+ return JSON . stringify ( data ) ;
180177 }
181178
182179 return "" ;
You can’t perform that action at this time.
0 commit comments