From 032f09c54100a3c5acfb9437a7c446946de68f11 Mon Sep 17 00:00:00 2001 From: Vinicius Stock Date: Fri, 22 Nov 2024 09:07:17 -0500 Subject: [PATCH] Skip validating RBIs when running under add-on mode The RBI validation is to prevent conflicts between gem RBIs and DSL RBIs coming from those gems. That scenario is not relevant for the add-on because the user would only be editing files like models and not files inside gems --- lib/tapioca/commands/dsl_generate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tapioca/commands/dsl_generate.rb b/lib/tapioca/commands/dsl_generate.rb index ef1762666..dc7261b84 100644 --- a/lib/tapioca/commands/dsl_generate.rb +++ b/lib/tapioca/commands/dsl_generate.rb @@ -19,7 +19,7 @@ def execute purge_stale_dsl_rbi_files(rbi_files_to_purge) say("Done", :green) - if @auto_strictness + if @auto_strictness && !@lsp_addon say("") validate_rbi_files( command: default_command(:dsl, all_requested_constants.join(" ")),