From bdf36b3ac8fbd55b1149267d825eeda77b4b0056 Mon Sep 17 00:00:00 2001 From: Piotr Magiera <56825108+piotmag769@users.noreply.github.com> Date: Fri, 29 Nov 2024 08:24:45 +0100 Subject: [PATCH] LS: Fix corelib test diagnostic with proc macro server off by default (#6770) Co-authored-by: Marek Kaput --- crates/cairo-lang-language-server/src/lang/db/mod.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/cairo-lang-language-server/src/lang/db/mod.rs b/crates/cairo-lang-language-server/src/lang/db/mod.rs index cc1072ca877..94726cba5fe 100644 --- a/crates/cairo-lang-language-server/src/lang/db/mod.rs +++ b/crates/cairo-lang-language-server/src/lang/db/mod.rs @@ -15,7 +15,7 @@ use cairo_lang_semantic::inline_macros::get_default_plugin_suite; use cairo_lang_semantic::plugin::PluginSuite; use cairo_lang_starknet::starknet_plugin_suite; use cairo_lang_syntax::node::db::{SyntaxDatabase, SyntaxGroup}; -use cairo_lang_test_plugin::test_assert_suite; +use cairo_lang_test_plugin::test_plugin_suite; use cairo_lang_utils::Upcast; pub use self::semantic::*; @@ -59,9 +59,10 @@ impl AnalysisDatabase { let plugin_suite = [ get_default_plugin_suite(), starknet_plugin_suite(), - // TODO(#6551): Restore this. - // test_plugin_suite() - test_assert_suite(), + // TODO(#6551): Test plugin should be only enabled for crates that indeed need it. + // Same for other plugins. + // Right now this code will conflict with procmacros. + test_plugin_suite(), ] .into_iter() .chain(tricks.extra_plugin_suites.iter().flat_map(|f| f()))