mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 10:15:35 +00:00
Introduce abstraction DocumentSymbols, which is now returned by request_document_symbols
This commit is contained in:
1 parent
24ea449abf
commit
d8cac3aedb
43 files changed
+198
-165
No files matched your search
@@ -31,7 +31,7 @@ class TestPerlLanguageServer:
|
||||
def test_document_symbols(self, language_server: SolidLanguageServer) -> None:
|
||||
"""Test that document symbols are correctly identified."""
|
||||
# Request document symbols
|
||||
all_symbols, _ = language_server.request_document_symbols("main.pl", include_body=False)
|
||||
all_symbols, _ = language_server.request_document_symbols("main.pl", include_body=False).get_all_symbols_and_roots()
|
||||
|
||||
assert all_symbols, "Expected to find symbols in main.pl"
|
||||
assert len(all_symbols) > 0, "Expected at least one symbol"
|
||||
|
||||
Reference in new issue
Block a user