phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Reference count on code lenses always equal to 0 on original file opened.

Open quyle92 opened this issue 2 years ago • 2 comments

Hi, Thanks for create awesome plugin for PHP community. When I open a file, the code lenses indicating references always shows 0, even though there are functions in other files that reference that method (picture 1). image

Can you please check?

Thank you.

quyle92 avatar Feb 22 '23 05:02 quyle92

Thank you @quyle92 , and thank you for reporting the issue.

This looks like the other files are not indexed yet; isn't there a high CPU use or "processing" icon at the bottom status bar?

image

Maybe the extension fails to index some of your files, so we would have to fix it.

jakubmisek avatar Feb 22 '23 10:02 jakubmisek

Thanks for your reply. Actually no. My file is short, only less than 40 lines of code. And most of the time, it only shows the count number correctly when I go to the referenced file and click on it. Like I have foo() in ClassA, and in ClassB I have bar() calling foo(), when I go to ClassB and click on foo(), then the count start reflecting the change..

quyle92 avatar Feb 23 '23 04:02 quyle92