Find All References doesn't return all instances at first but Find in Files does #67962
Labels
javascript
JavaScript support issues
*question
Issue represents a question, should be posted to StackOverflow (VS Code)
Milestone
Issue Type: Bug
I have doing Find All References (FAR) from the definition of a function in JS. It shows me the definition and sometimes one reference almost as if it's only showing me the instances in my open files.
However I can do Find In Files (FIF) and see there are more as I expected. Once I open one of those instance that were not previously found, not Find All References does find them all, even ones in files I didn't open.
Just now I found the definition only with FAR, but once I did FIF and opened one of them (a reducer file in React), then did FAR from that instance (so not the definition), then it did find all the references including the reducer I just started from, the definition it was already finding, and now also the action file that also contained a reference. I went back to the definition of the function and did FAR again and it does still find all of them indeed now. Note that I never opened the action file so it's not about just finding the references in the open files. In other words, when it kicks into working, it does find the references even in non-open files.
My project is this: https://github.com/jodymbrooks/brave
and I am doing FAR and FIF for getCardFromKey in the src/cardUtilities.js file.
VS Code version: Code 1.30.2 (61122f8, 2019-01-07T22:54:13.295Z)
OS version: Windows_NT x64 10.0.15063
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (6)
The text was updated successfully, but these errors were encountered: