JB tools: improve docstrings related to relative_path for external dependencies

Claude was confused..
This commit is contained in:
Michael Panchenko committed 2026-04-13 14:09:04 +02:00
1 parent 9b7dcbdf63
commit e633c94e3b
3 files changed
+5 -1

No files matched your search

+1
View File
@@ -15,6 +15,7 @@ Status of the `main` branch. Changes prior to the next official version change w
* JetBrains:
- `JetBrainsRenameTool` can now also rename occurrences in comments and text.
- Minor fixes in handling `relative_path` for external dependencies.
* Language Servers:
- Fix Dart LSP returning only symbol name as body instead of full method body.
+2
View File
@@ -58,6 +58,8 @@ class JetBrainsFindSymbolTool(Tool, ToolMarkerSymbolicRead, ToolMarkerOptional):
for the case where the symbol is a class, this will return its methods).
Ignored if `include_body=True`. Default 0.
:param relative_path: Optional. Restrict search to this file or directory. If not specified, searches entire codebase.
Note: for external dependencies, this must be an identifier starting with `<ext` that you have received
earlier (don't try to guess!).
:param include_body: If True, include the symbol's source code. Use judiciously.
:param include_info: whether to include additional info (hover-like, typically including docstring and signature),
about the symbol.
+2 -1
View File
@@ -258,7 +258,8 @@ class FindReferencingSymbolsTool(Tool, ToolMarkerSymbolicRead):
:param name_path: for finding the symbol to find references for, same logic as in the `find_symbol` tool.
:param relative_path: the relative path to the file containing the symbol for which to find references.
Note that here you can't pass a directory but must pass a file.
Note: for external dependencies, this must be an identifier starting with `<ext` that you have received
earlier (don't try to guess!).
:param include_kinds: same as in the `find_symbol` tool.
:param exclude_kinds: same as in the `find_symbol` tool.
:param max_answer_chars: same as in the `find_symbol` tool.