From 49b9577c044db6d18838ab8629ea33c1a0c1da42 Mon Sep 17 00:00:00 2001 From: Piotr Magiera <56825108+piotmag769@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:05:59 +0100 Subject: [PATCH] LS: Disable proc macro support by default (#6768) --- crates/cairo-lang-language-server/src/config.rs | 2 +- vscode-cairo/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/cairo-lang-language-server/src/config.rs b/crates/cairo-lang-language-server/src/config.rs index 17d419b0940..96d7defb025 100644 --- a/crates/cairo-lang-language-server/src/config.rs +++ b/crates/cairo-lang-language-server/src/config.rs @@ -96,7 +96,7 @@ impl Config { state.config.trace_macro_diagnostics = response.pop_front().as_ref().and_then(Value::as_bool).unwrap_or_default(); state.config.enable_proc_macros = - response.pop_front().as_ref().and_then(Value::as_bool).unwrap_or(true); + response.pop_front().as_ref().and_then(Value::as_bool).unwrap_or(false); debug!("reloaded configuration: {:#?}", state.config); diff --git a/vscode-cairo/package.json b/vscode-cairo/package.json index 5e583f5698a..f7d7a3782e4 100644 --- a/vscode-cairo/package.json +++ b/vscode-cairo/package.json @@ -144,8 +144,8 @@ }, "cairo1.enableProcMacros": { "type": "boolean", - "default": true, - "description": "Enable support for procedural macros.", + "default": false, + "description": "Enable support for procedural macros. This feature is in active development and may not work flawlessly yet!", "scope": "window" } }