1
0
Fork 0
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:
David Sherret 2023-07-26 19:43:31 -04:00 committed by GitHub
parent 56e3daa19b
commit 134f2d5c60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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())