fix(test): remove php_phpactor symlink and add repo alias mapping

Remove the unnecessary php_phpactor -> php symlink. Instead, add a
_LANGUAGE_REPO_ALIASES mapping in conftest.py so that variant language
servers (PHP_PHPACTOR, PYTHON_JEDI, RUBY_SOLARGRAPH) resolve to their
base language's test repository without needing filesystem symlinks.

Addresses review comment on PR #1002.
This commit is contained in:
takeokunn committed 2026-02-08 01:03:12 +09:00
1 parent d39967dd67
commit c972380d0a
2 files changed
+9 -2

No files matched your search

+9 -1
View File
@@ -34,8 +34,16 @@ class LanguageParamRequest:
param: Language
_LANGUAGE_REPO_ALIASES: dict[Language, Language] = {
Language.PHP_PHPACTOR: Language.PHP,
Language.PYTHON_JEDI: Language.PYTHON,
Language.RUBY_SOLARGRAPH: Language.RUBY,
}
def get_repo_path(language: Language) -> Path:
return Path(__file__).parent / "resources" / "repos" / language / "test_repo"
repo_language = _LANGUAGE_REPO_ALIASES.get(language, language)
return Path(__file__).parent / "resources" / "repos" / repo_language / "test_repo"
def _create_ls(
-1
View File
@@ -1 +0,0 @@
php