Skip to content

Commit ccf7a3d

Browse files
Avoid request name getting redacted (#1172)
* Avoid request name getting redacted
1 parent e2fde14 commit ccf7a3d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/daemon/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function checkJavaExtActivated(_context: vscode.ExtensionContext): Promise
5555
if (INTERESTED_REQUESTS.has(traceEvent.type)) {
5656
sendInfo("", {
5757
name: "lsp",
58-
kind: traceEvent.type,
58+
kind: escapeLspRequestName(traceEvent.type),
5959
duration: Math.trunc(traceEvent.duration),
6060
});
6161
}
@@ -117,3 +117,10 @@ async function checkIfJavaServerCrashed(wait: number = 0/*ms*/) {
117117
}
118118
}
119119
}
120+
121+
/**
122+
* To avoid the LSP request name get redacted.
123+
*/
124+
function escapeLspRequestName(name: string) {
125+
return name.replace(/\//g, "-")
126+
}

0 commit comments

Comments
 (0)