lib/tapioca/commands/abstract_dsl.rb in tapioca-0.16.7 vs lib/tapioca/commands/abstract_dsl.rb in tapioca-0.16.8
- old
+ new
@@ -116,15 +116,17 @@
@pipeline ||= T.let(create_pipeline, T.nilable(Tapioca::Dsl::Pipeline))
end
sig { void }
def load_application
+ # Loaded ahead of time when using the add-on to avoid reloading multiple times
+ return if @lsp_addon
+
Loaders::Dsl.load_application(
tapioca_path: @tapioca_path,
eager_load: @requested_constants.empty? && @requested_paths.empty?,
app_root: @app_root,
halt_upon_load_error: @halt_upon_load_error,
- lsp_addon: @lsp_addon,
)
end
sig { returns(Tapioca::Dsl::Pipeline) }
def create_pipeline