From 2bb013f9baa927fc7b392766b0182b91380b9aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 15 Aug 2024 22:47:16 +0100 Subject: refactor: `version` module exports a single const struct (#25014) This commit rewrites the internal `version` module that exported various information about the current executable. Instead of exporting several consts, we are now exporting a single const structure that contains all the necessary information. This is the first step towards cleaning up how we use this information and should allow us to use SUI to be able to patch this information in already produced binary making it easier to cut new releases. --------- Co-authored-by: Divy Srivastava --- cli/lsp/language_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/lsp/language_server.rs') diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index 6fa079bd8..ff3a7f0c6 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -691,7 +691,7 @@ impl Inner { let version = format!( "{} ({}, {})", - crate::version::deno(), + crate::version::DENO_VERSION_INFO.deno, env!("PROFILE"), env!("TARGET") ); -- cgit v1.2.3