You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add editor_definition and editor_references tools backed by editor's LSP
New editor/getDefinition and editor/getReferences server requests let the
LLM navigate to a symbol definition/references using the editor's language
server, resolving the symbol position server-side from path + line + symbol.
Clients answer success/starting/no-server/error so the LLM gets actionable
feedback: retry while the LSP is starting, fall back to grep otherwise.
Gated by new client capabilities and toolCall.editorNav.enabled config. #351
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
## Unreleased
4
4
5
+
- Add `editor_definition` and `editor_references` tools backed by the editor's language server, behind new client capabilities and `toolCall.editorNav.enabled` config. #351
6
+
5
7
## 0.154.2
6
8
7
9
- Retry LLM requests on network failures (VPN/wifi drops: DNS, refused or timed-out connects) with "Network issues" progress, instead of failing or hanging.
Copy file name to clipboardExpand all lines: docs/features.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,8 @@ ECA support built-in tools to avoid user extra installation and configuration, t
77
77
Provides access to get information from editor workspaces.
78
78
79
79
- `editor_diagnostics`: Ask client about the diagnostics (like LSP diagnostics).
80
+
- `editor_definition`: Ask client for the definition locations of a symbol (like LSP definition). Requires client capability, can be disabled via `toolCall.editorNav.enabled` config.
81
+
- `editor_references`: Ask client for the references of a symbol (like LSP references). Requires client capability, can be disabled via `toolCall.editorNav.enabled` config.
Copy file name to clipboardExpand all lines: resources/prompts/code_agent.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,12 @@ You have tools at your disposal to solve the coding task. Follow these rules reg
26
26
2. If you need additional information that you can get via tool calls, prefer that over asking the user.
27
27
3. If you are not sure about file content or codebase structure pertaining to the user's request, use your tools to read files and gather the relevant information: do NOT guess or make up an answer.
28
28
4. You have the capability to call multiple tools in a single response, batch your tool calls together for optimal performance.
29
+
{% if toolEnabled_eca__editor_definition %}
30
+
When you need to know where a symbol is defined, prefer `eca__editor_definition` over text search: it uses the editor's language server, which is precise and uses fewer tokens. Fall back to `eca__grep` if it fails.
31
+
{% endif %}
32
+
{% if toolEnabled_eca__editor_references %}
33
+
When you need to find usages of a symbol, prefer `eca__editor_references` over text search: it uses the editor's language server, avoiding textual false positives. Fall back to `eca__grep` if it fails.
0 commit comments