microsoft / microsoft/vscode

vscode_listCodeusages tool does not relay locations of references if the result set is too large

Open
#327,010 0 comments 0 reactions 1 assignee Claimed by @roblourens View on GitHub
bug
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

- Copilot Chat Extension Version: 0.54.0
- VS Code Version: 1.130.0
- OS Version: Windows_NT x64 10.0.26100
- Feature (e.g. agent/edit/ask mode): Agent
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): Claude Sonnet 4.6

Steps to Reproduce:

1. Create a file where the symbol you wish to identify has more than 100 references across multiple lines in said file. In my example, I've asked Copilot to create "sporadic_symbol" that has placed 100 references randomly across a generated file.
2. Prompt the usages tool to retrieve all references of your chosen symbol "#usages find all references of ".
3. The result displayed will only inform the user that the agent has found the correct number of references across the file but fails to display where they are located (or will only display this information for the declaration / definition). Please see image below for example.
4. If we compare this result to the "GetSymbolReferences_CppTools" agent tool that performs a similar action, that tool will display a batch of references with their given locations and can proceed to deliver the rest when prompted. Please see image below for example.

Images:

Usages tool output:

Image

Alternative GetSymbolReferences output:

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.