summaryrefslogtreecommitdiff
path: root/cli/lsp/diagnostics.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-12-22 02:04:02 +0100
committerGitHub <noreply@github.com>2023-12-22 02:04:02 +0100
commitcdbf902499dc62a4fb9f8cbf2a47a7b446623929 (patch)
treeacded191f368894e02c024f39946b1e7cb0972a4 /cli/lsp/diagnostics.rs
parentf86456fc26d1c02f6c511125037efed576f87458 (diff)
feat(lsp): allow to connect V8 inspector (#21482)
This commit adds a way to connect to the TS compiler host that is run as part of the "deno lsp" subcommand. This can be done by specifying "DENO_LSP_INSPECTOR" variable. --------- Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Diffstat (limited to 'cli/lsp/diagnostics.rs')
-rw-r--r--cli/lsp/diagnostics.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/lsp/diagnostics.rs b/cli/lsp/diagnostics.rs
index 8034127e9..4bec3083d 100644
--- a/cli/lsp/diagnostics.rs
+++ b/cli/lsp/diagnostics.rs
@@ -1639,6 +1639,7 @@ let c: number = "a";
let cache =
Arc::new(GlobalHttpCache::new(cache_location, RealDenoCacheEnv));
let ts_server = TsServer::new(Default::default(), cache);
+ ts_server.start(None);
// test enabled
{