summaryrefslogtreecommitdiff
path: root/cli/lsp/language_server.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-02 16:32:30 +0100
committerGitHub <noreply@github.com>2022-11-02 16:32:30 +0100
commit5dea510b021d78a2c9b6aef9462ae6f4e0fd527a (patch)
tree728b3663f2852fae25df72ab2599c3cbebfc8ac9 /cli/lsp/language_server.rs
parent630abb58b08827e63e56f519bf59a84c3283ab23 (diff)
fix(lock): autodiscovery of lockfile (#16498)
This commit adds autodiscovery of lockfile. This only happens if Deno discovers the configuration file (either "deno.json" or "deno.jsonc"). In such case Deno tries to load "deno.lock" file that sits next to the configuration file, or creates one for user if the lockfile doesn't exist yet. As a consequence, "--lock" and "--lock-write" flags had been updated. "--lock" no longer requires a value, if one is not provided, it defaults to "./deno.lock" resolved from the current working directory. "--lock-write" description was updated to say that it forces to overwrite a lockfile. Autodiscovery is currently not handled by the LSP.
Diffstat (limited to 'cli/lsp/language_server.rs')
-rw-r--r--cli/lsp/language_server.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs
index a3f516615..3a0906636 100644
--- a/cli/lsp/language_server.rs
+++ b/cli/lsp/language_server.rs
@@ -2916,6 +2916,8 @@ impl Inner {
..Default::default()
},
self.maybe_config_file.clone(),
+ // TODO(#16510): add support for lockfile
+ None,
);
cli_options.set_import_map_specifier(self.maybe_import_map_uri.clone());