Refactoring: Rename Language to LanguageServerId

This resolves a long-standing naming issue in Serena & SolidLSP.
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-07-22 20:55:36 +02:00
1 parent ef0e218fb1
commit d2cf18ddcb
180 files changed
+1806 -1767

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import os
import pytest
from solidlsp.ls_config import Language
from solidlsp.ls_config import LanguageServerId
from test.conftest import start_ls_context
@@ -22,7 +22,7 @@ class TestClangdLanguages:
],
)
def test_get_document_symbols(self, lang: str, unit: str, names: set[str]) -> None:
with start_ls_context(Language.CPP) as clangd:
with start_ls_context(LanguageServerId.CPP) as clangd:
path = os.path.join(lang, unit)
symbols = clangd.request_document_symbols(path).get_all_symbols_and_roots()
symbols = symbols[0] if symbols and isinstance(symbols[0], list) else symbols