summaryrefslogtreecommitdiff
path: root/cli/lsp/testing/server.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-12-01 03:54:59 +0100
committerGitHub <noreply@github.com>2023-12-01 03:54:59 +0100
commitfe90ba650d926fb006948499a96c9dabb149eed9 (patch)
tree65c155c8859a0764c187ec7dd17bc7bb1c4e5be8 /cli/lsp/testing/server.rs
parent5f6181df4a914c0d05ea3d2b63190b9ee2d764ca (diff)
refactor(lsp): log names (#21413)
This commit changes LSP log names by prefixing them, we now have these prefixes: - `lsp.*` - requests coming from the client - `tsc.request.*` - requests coming from clients that are routed to TSC - `tsc.op.*` - ops called by the TS host - `tsc.host.*` - requests that call JavaScript runtime that runs TypeScript compiler host Additionall `Performance::mark` was split into `Performance::mark` and `Performance::mark_with_args` to reduce verbosity of code and logs.
Diffstat (limited to 'cli/lsp/testing/server.rs')
-rw-r--r--cli/lsp/testing/server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lsp/testing/server.rs b/cli/lsp/testing/server.rs
index 562bbfcb0..a72e13a83 100644
--- a/cli/lsp/testing/server.rs
+++ b/cli/lsp/testing/server.rs
@@ -87,7 +87,7 @@ impl TestServer {
match update_rx.recv().await {
None => break,
Some(snapshot) => {
- let mark = performance.mark("testing_update", None::<()>);
+ let mark = performance.mark("lsp.testing_update");
let mut tests = tests.lock();
// we create a list of test modules we currently are tracking
// eliminating any we go over when iterating over the document