From fe90ba650d926fb006948499a96c9dabb149eed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 1 Dec 2023 03:54:59 +0100 Subject: 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. --- cli/lsp/testing/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/lsp/testing/server.rs') 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 -- cgit v1.2.3