Skip to content

Commit

Permalink
Fix did not compile javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Oct 9, 2024
1 parent e3d5d39 commit 8944628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/dap_adapters/src/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,17 @@ impl DebugAdapter for JsDebugAdapter {
.output()
.await?;

let _npm = delegate
let _ = delegate
.node_runtime()
.ok_or(anyhow!("Couldn't get npm runtime"))?
.run_npm_subcommand(&adapter_path, "install", &[])
.await
.ok();

let _npm = delegate
let _ = delegate
.node_runtime()
.ok_or(anyhow!("Couldn't get npm runtime"))?
.run_npm_subcommand(&adapter_path, "compile", &[])
.run_npm_subcommand(&adapter_path, "run", &["compile"])
.await
.ok();

Expand Down

0 comments on commit 8944628

Please sign in to comment.