mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-06 16:16:56 +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
@@ -25,7 +25,7 @@ class TestJavaLanguageServer:
|
||||
|
||||
# Dynamically determine the correct line/column for the 'Model' class name
|
||||
file_path = os.path.join("src", "main", "java", "test_repo", "Model.java")
|
||||
symbols = language_server.request_document_symbols(file_path)
|
||||
symbols = language_server.request_document_symbols(file_path).get_all_symbols_and_roots()
|
||||
model_symbol = None
|
||||
for sym in symbols[0]:
|
||||
if sym.get("name") == "Model" and sym.get("kind") == 5: # 5 = Class
|
||||
|
||||
Reference in new issue
Block a user