Skip to content

Commit

Permalink
set the aztec macro based on environment variable for lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Nov 30, 2023
1 parent 5746d40 commit 1aa2206
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tooling/nargo_cli/src/cli/lsp_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use async_lsp::{
};
use clap::Args;
use noir_lsp::NargoLspService;
use noirc_driver::is_aztec_environment_variable_set;
use tower::ServiceBuilder;

use super::NargoConfig;
Expand Down Expand Up @@ -32,7 +33,8 @@ pub(crate) fn run(
let (server, _) = async_lsp::MainLoop::new_server(|client| {
#[allow(deprecated)]
let blackbox_solver = barretenberg_blackbox_solver::BarretenbergSolver::new();
let router = NargoLspService::new(&client, blackbox_solver, true);
let router =
NargoLspService::new(&client, blackbox_solver, is_aztec_environment_variable_set());

ServiceBuilder::new()
.layer(TracingLayer::default())
Expand Down

0 comments on commit 1aa2206

Please sign in to comment.