-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
References are counted multiple times for similar named functions #2810
References are counted multiple times for similar named functions #2810
Comments
Thanks @PrzemyslawKlys it seems like some/all results are being being counted twice, and unfortunately we cant repro this--it would be really helpful if you could also attach the logs--instructions for how to do that are here |
1594906372-ed180bde-03b7-4479-8c96-8966ac6a7eed1594906371018.zip I can reproduce it even in newly open code, in different folders. When i click on those, it doesn't move me. It's showing exactly same place, just doubled. |
Thanks @PrzemyslawKlys we took a good look at your logs, and unfortunately could not find the resulting bug in the logs...if you have time to provide more logs that would be great...the other possibility is that this is a bug in the VSCode client |
@TylerLeonhardt could you look at this issue, and add it some priority. I know you guys work on other features but this has been bugging me for a while now providing wrong number of references misinforming me about them most of the time.
I can always reproduce it, on multiple computers. |
I'm getting a similar issue to this, here's my payload log: I found that this was only happening when my file was in a subfolder, and when I moved my file out of the subfolder, references were counted properly. But when I moved it back, the reference counts doubled again. I don't know if that's significant or not, but I thought I'd at least mention it. |
Messing around further, it seems like the function declaration and the double-counted functions calls must be in the same file. Function references from a different file are counted normally.
Here's my files from the image above if anyone else wants to have a look: SeeingDouble.zip |
Looks like this is only happening on Windows.... investigating. |
I've got a fix out for this. |
Issue Description
I am experiencing a problem with...references being counted multiple times. It seems like "like" is used for comparison and it doesn't look for exact match but with a wildcard.
Find References
Find References for Invoke-GPOTranslation
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: