Skip to content

Commit

Permalink
LS: Disable proc macro support by default (#6768)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotmag769 authored Nov 28, 2024
1 parent 3c5a2f4 commit 49b9577
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/cairo-lang-language-server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions vscode-cairo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down

0 comments on commit 49b9577

Please sign in to comment.