The C/C++ DevTools extension causes find all references to give 0 results if Copilot invokes find all references

Open
#14,261 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, typescript

Research direction

Start by reproducing the issue with "cpp-devtools.enableCppCodeEditingTools": true while a user-invoked Find All References and a Copilot-invoked request overlap. Trace how concurrent Find All References requests are cancelled or queued, and verify that the second invoker waits for the first result so both receive the completed references instead of 0 results.

Written by the indexing model from the issue text.

Description

bug Feature: DevTools (Copilot) Feature: Find All References Language Service

With the C/C++ DevTools extension installed with "cpp-devtools.enableCppCodeEditingTools": true, a user-invoked Find All References will get cancelled and give 0 results if Copilot happens to invoke Find All References while the user-invoked operation is in progress.

Similarly, a user-invoked Find All References can confuse Copilot into believing there are 0 references if it is waiting for results from the Find All References tool.

A different invoker of FAR should have their request wait for the 1st requester's resut to finish instead of cancelling the 1st requestor's operation.

Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-cpptools

All issues in microsoft/vscode-cpptools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.