diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2022-01-24 11:27:52 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 11:27:52 +1100 |
commit | 3ec248cff8fff1a41c2b2ad5301e7aa3db00c6a8 (patch) | |
tree | 549b791b6d9718a51d3f7c8258e076beafab64df /cli/lsp/cache.rs | |
parent | 3959d9f2d285bd45beb34074cf61090e2c4976dc (diff) |
fix(lsp): respect DENO_CERT and other options related to TLS certs (#13467)
Fixes #13437
Diffstat (limited to 'cli/lsp/cache.rs')
-rw-r--r-- | cli/lsp/cache.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/lsp/cache.rs b/cli/lsp/cache.rs index 562ad78b0..e21bcff2d 100644 --- a/cli/lsp/cache.rs +++ b/cli/lsp/cache.rs @@ -33,6 +33,9 @@ impl CacheServer { maybe_cache_path: Option<PathBuf>, maybe_import_map: Option<Arc<ImportMap>>, maybe_config_file: Option<ConfigFile>, + maybe_ca_stores: Option<Vec<String>>, + maybe_ca_file: Option<String>, + unsafely_ignore_certificate_errors: Option<Vec<String>>, ) -> Self { let (tx, mut rx) = mpsc::unbounded_channel::<Request>(); let _join_handle = thread::spawn(move || { @@ -40,6 +43,9 @@ impl CacheServer { runtime.block_on(async { let ps = ProcState::build(Flags { cache_path: maybe_cache_path, + ca_stores: maybe_ca_stores, + ca_file: maybe_ca_file, + unsafely_ignore_certificate_errors, ..Default::default() }) .await |