mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
chore: fix benchmarks (#19958)
This commit is contained in:
parent
56e3daa19b
commit
134f2d5c60
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
use crate::deno_exe_path;
|
||||
use crate::new_deno_dir;
|
||||
use crate::npm_registry_url;
|
||||
use crate::PathRef;
|
||||
use crate::TestContext;
|
||||
|
@ -523,7 +524,11 @@ impl LspClientBuilder {
|
|||
}
|
||||
|
||||
pub fn build_result(&self) -> Result<LspClient> {
|
||||
let deno_dir = self.context.as_ref().unwrap().deno_dir().clone();
|
||||
let deno_dir = self
|
||||
.context
|
||||
.as_ref()
|
||||
.map(|c| c.deno_dir().clone())
|
||||
.unwrap_or_else(new_deno_dir);
|
||||
let mut command = Command::new(&self.deno_exe);
|
||||
command
|
||||
.env("DENO_DIR", deno_dir.path())
|
||||
|
|
Loading…
Reference in a new issue