Skip to content

Commit e2eb1f1

Browse files
committed
JetBrainsFindSymbolTool: Force search_deps=True if relative path to ext. file
Improve changelog entry
1 parent ed061d8 commit e2eb1f1

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ Status of the `main` branch. Changes prior to the next official version change w
77
- Extended the list of always ignored directories (by language servers) with common cases.
88

99
JetBrains:
10-
- Minor fixes in handling `relative_path` for external dependencies.
10+
- Improve handling of `relative_path` parameter
11+
- Improve its documentation to avoid usage errors
12+
- Replace escaped characters in `relative_path` with their unescaped counterparts (< and >)
13+
- `FindSymbolTool`: Force `search_deps=True` if `relative_path` pertains to external dependencies.
1114

1215
* Language Servers:
1316
- Add mSL (mIRC Scripting Language) support (custom pygls-based language server; symbols, references, definitions)

src/serena/tools/jetbrains_tools.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,15 @@ def apply(
7474
depth = 0 # ignore user-specified depth if body is requested
7575

7676
name_path_pattern = self._sanitize_input_param(name_path_pattern)
77+
7778
if relative_path:
7879
relative_path = self._sanitize_input_param(relative_path)
79-
8080
if relative_path == ".":
8181
relative_path = None
82+
83+
if relative_path is not None and relative_path.startswith(jb.JB_EXTERNAL_FILE_PREFIX):
84+
search_deps = True
85+
8286
with JetBrainsPluginClient.from_project(self.project) as client:
8387
if include_body:
8488
include_quick_info = False

0 commit comments

Comments
 (0)