Improve description of find_declaration method to avoid confusion with find_symbol

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-09-17 21:43:07 +02:00
1 parent 84c673bae4
commit 2a6deef838
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -399,7 +399,7 @@ class JetBrainsApi(FacadeApi):
@facade_method(corresponding_tool=JetBrainsFindDeclarationTool)
def find_declaration(self, relative_path: str, regex: str, include_body: bool = False) -> JetBrainsSymbolCollection:
r"""
Finds the declaration of a symbol.
Finds the declaration of a symbol based on an occurrence of the symbol in a source file, specified by a regex.
:param relative_path: the relative path to the source file containing the symbol for which to find the declaration.
:param regex: a regular expression with one group, where the group matches the symbol for which to perform the lookup.
+1 -1
View File
@@ -609,7 +609,7 @@ class LspApi(FacadeApi):
include_info: bool = False,
) -> LspSymbol:
r"""
Finds the declaration of a symbol.
Finds the declaration of a symbol based on an occurrence of the symbol in a source file, specified by a regex.
:param relative_path: the relative path to the source file containing the symbol for which to find the declaration.
:param regex: a regular expression with one group, where the group matches the symbol for which to perform the lookup.