From fff9f1e983631899d5f3122253e8bc580f293e16 Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Thu, 20 Nov 2025 14:30:49 +0700 Subject: [PATCH] Elixir: bump time to wait for cross-file referencing Needed since #763 removed the 120s "settling time" at server startup and now elixir tests are failing --- src/solidlsp/language_servers/elixir_tools/elixir_tools.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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