From cdbf902499dc62a4fb9f8cbf2a47a7b446623929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 22 Dec 2023 02:04:02 +0100 Subject: 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 --- cli/lsp/language_server.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/lsp/language_server.rs') diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index 2d3864e0a..e730e145f 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -1226,6 +1226,10 @@ impl Inner { self.config.update_capabilities(¶ms.capabilities); } + self + .ts_server + .start(self.config.internal_inspect().to_address()); + self.update_debug_flag(); // Check to see if we need to change the cache path if let Err(err) = self.update_cache().await { -- cgit v1.2.3