diff options
| author | Adam Malczewski <[email protected]> | 2026-06-24 19:15:17 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-24 19:15:17 +0900 |
| commit | e03a96e539d354345cd6328ddc5c7638398d3e14 (patch) | |
| tree | bff49806ed664d0b87f13199558f0e9f1794e14f /GLOSSARY.md | |
| parent | 94363d4e5b4fe7f026e06b65fb847342224428d8 (diff) | |
| download | dispatch-e03a96e539d354345cd6328ddc5c7638398d3e14.tar.gz dispatch-e03a96e539d354345cd6328ddc5c7638398d3e14.zip | |
fix(tool-edit-file): wrap getService in try/catch to prevent activation crash
The per-edit diagnostics change (8f6114b) called host.getService(lspServiceHandle)
during activate(). But getService THROWS when a service has no provider — so if
the LSP extension activates AFTER tool-edit-file (or isn't loaded at all), the
activate() function crashes and the edit_file tool is NEVER REGISTERED. This is
why the edit_file tool was missing from the agent toolset.
Fix: wrap getService in try/catch — if the LSP service isn't available yet,
lspService becomes undefined and edits proceed without diagnostics (the graceful
degradation the comment always promised but the code didn't deliver).
Diffstat (limited to 'GLOSSARY.md')
0 files changed, 0 insertions, 0 deletions
