mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 08:15:59 +00:00
Refactoring: Rename Language to LanguageServerId
This resolves a long-standing naming issue in Serena & SolidLSP.
This commit is contained in:
1 parent
ef0e218fb1
commit
d2cf18ddcb
180 files changed
+1806
-1767
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user