feat(dora): add lsp_references tool for finding symbol usages (#28)#29
Merged
Merged
Conversation
Add lsp_references MCP tool to the LSP provider that finds all references to a symbol at a given position in a file. - Add tool definition with file, line, character, and optional include_declaration parameters - Implement handleReferences handler using LSPManager.references() - Add test for tool listing - Follow existing LSP tool patterns (path handling, error handling) Issue: #28
5 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29 +/- ##
==========================================
+ Coverage 40.14% 47.94% +7.80%
==========================================
Files 15 15
Lines 3340 3341 +1
==========================================
+ Hits 1341 1602 +261
+ Misses 1999 1739 -260 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add missing test cases for lsp_references tool: - TC-2: Error when calling without connection - TC-3: Empty result handling for non-symbol position
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
lsp_referencesMCP tool to the LSP provider that finds all references to a symbol at a given position in a file.Changes
lsp_referencestool definition withfile,line,character, and optionalinclude_declarationparametershandleReferenceshandler usingLSPManager.references()from@pleaseai/code-lspTest Plan
listTools()outputCloses #28