mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-11 03:13:51 +00:00
Restore symbol_dict_grouper attributes on the symbol tools
The attribute is the tools' public handle for disabling grouping (disabled_context()), used by the health check and tests.
This commit is contained in:
1 parent
eabc7e60d6
commit
9b0f6cf97a
2 files changed
+12
No files matched your search
@@ -28,6 +28,8 @@ class JetBrainsFindSymbolTool(Tool, ToolMarkerSymbolicRead, ToolMarkerOptional,
|
||||
Performs a global (or local) search for symbols using the JetBrains backend
|
||||
"""
|
||||
|
||||
symbol_dict_grouper = JetBrainsApi.find_symbol_grouper_
|
||||
|
||||
def apply(
|
||||
self,
|
||||
name_path_pattern: str,
|
||||
@@ -215,6 +217,8 @@ class JetBrainsFindReferencingSymbolsTool(Tool, ToolMarkerSymbolicRead, ToolMark
|
||||
Finds symbols that reference the given symbol using the JetBrains backend
|
||||
"""
|
||||
|
||||
symbol_dict_grouper = JetBrainsApi.references_grouper_
|
||||
|
||||
def apply(
|
||||
self,
|
||||
name_path: str,
|
||||
@@ -241,6 +245,8 @@ class JetBrainsGetSymbolsOverviewTool(Tool, ToolMarkerSymbolicRead, ToolMarkerOp
|
||||
Retrieves an overview of the top-level symbols within a specified file using the JetBrains backend
|
||||
"""
|
||||
|
||||
symbol_dict_grouper = JetBrainsApi.overview_grouper_
|
||||
|
||||
def apply(
|
||||
self,
|
||||
relative_path: str,
|
||||
|
||||
@@ -43,6 +43,8 @@ class GetSymbolsOverviewTool(Tool, ToolMarkerSymbolicRead, LspApiMixin):
|
||||
Gets an overview of the top-level symbols defined in a given file.
|
||||
"""
|
||||
|
||||
symbol_dict_grouper = LspApi.overview_grouper_
|
||||
|
||||
def apply(self, relative_path: str, depth: int = -1, max_answer_chars: int = -1) -> str:
|
||||
"""
|
||||
Use this tool to get a high-level understanding of the code symbols in a file.
|
||||
@@ -65,6 +67,8 @@ class FindSymbolTool(Tool, ToolMarkerSymbolicRead, LspApiMixin):
|
||||
Performs a global (or local) search using the language server backend.
|
||||
"""
|
||||
|
||||
symbol_dict_grouper = LspApi.find_symbol_dict_grouper_
|
||||
|
||||
def apply(
|
||||
self,
|
||||
name_path_pattern: str,
|
||||
@@ -144,6 +148,8 @@ class FindReferencingSymbolsTool(Tool, ToolMarkerSymbolicRead, LspApiMixin):
|
||||
Finds symbols that reference the given symbol
|
||||
"""
|
||||
|
||||
symbol_dict_grouper = LspApi.references_grouper_
|
||||
|
||||
def apply(
|
||||
self,
|
||||
name_path: str,
|
||||
|
||||
Reference in new issue
Block a user