diff --git a/src/solidlsp/language_servers/elixir_tools/elixir_tools.py b/src/solidlsp/language_servers/elixir_tools/elixir_tools.py index 72e52f15..fa14d3e0 100644 --- a/src/solidlsp/language_servers/elixir_tools/elixir_tools.py +++ b/src/solidlsp/language_servers/elixir_tools/elixir_tools.py @@ -25,6 +25,10 @@ class ElixirTools(SolidLanguageServer): Provides Elixir specific instantiation of the LanguageServer class using Next LS from elixir-tools. """ + @override + def _get_wait_time_for_cross_file_referencing(self) -> float: + return 10.0 # Elixir projects need a lot of time to compile and index before cross-file references work + @override def is_ignored_dirname(self, dirname: str) -> bool: # For Elixir projects, we should ignore: @@ -44,7 +48,8 @@ class ElixirTools(SolidLanguageServer): return super().is_ignored_path(relative_path, ignore_unsupported_files) - def _is_next_ls_internal_file(self, abs_path: str) -> bool: + @staticmethod + def _is_next_ls_internal_file(abs_path: str) -> bool: """Check if an absolute path is a Next LS internal file that should be ignored.""" return any( pattern in abs_path