From 1aa22065eff965b3ecab40e644705a2a9647c519 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Thu, 30 Nov 2023 19:47:32 +0000 Subject: [PATCH] set the aztec macro based on environment variable for lsp --- tooling/nargo_cli/src/cli/lsp_cmd.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tooling/nargo_cli/src/cli/lsp_cmd.rs b/tooling/nargo_cli/src/cli/lsp_cmd.rs index 442eae1e508..c274c5e941c 100644 --- a/tooling/nargo_cli/src/cli/lsp_cmd.rs +++ b/tooling/nargo_cli/src/cli/lsp_cmd.rs @@ -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; @@ -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())