summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.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/diagnostics.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/diagnostics.rs')
-rw-r--r--cli/lsp/diagnostics.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs
index 8f9696845..4b43a478c 100644
--- a/cli/lsp/diagnostics.rs
+++ b/cli/lsp/diagnostics.rs
@@ -493,8 +493,7 @@ impl DiagnosticsServer {
_ = tokio::time::sleep(DELAY) => {}
};
- let mark =
- performance.mark("update_diagnostics_ts", None::<()>);
+ let mark = performance.mark("lsp.update_diagnostics_ts");
let diagnostics = generate_ts_diagnostics(
snapshot.clone(),
&config,
@@ -549,8 +548,7 @@ impl DiagnosticsServer {
if let Some(previous_handle) = previous_deps_handle {
previous_handle.await;
}
- let mark =
- performance.mark("update_diagnostics_deps", None::<()>);
+ let mark = performance.mark("lsp.update_diagnostics_deps");
let diagnostics = spawn_blocking({
let token = token.clone();
move || generate_deno_diagnostics(&snapshot, &config, token)
@@ -599,8 +597,7 @@ impl DiagnosticsServer {
if let Some(previous_handle) = previous_lint_handle {
previous_handle.await;
}
- let mark =
- performance.mark("update_diagnostics_lint", None::<()>);
+ let mark = performance.mark("lsp.update_diagnostics_lint");
let diagnostics = spawn_blocking({
let token = token.clone();
move || {