-
Notifications
You must be signed in to change notification settings - Fork 819
Renaming works weirdly for disposable types #15721
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
Comments
@0101 do we have some tracking ticket for renaming/references? Anyway, maybe you've seen this before. |
We don't, just the label. Actually two of them, which I think maybe we should unify as there's a huge overlap - I haven't seen this particular issue(s) before. It looks pretty bad! |
=@0101 has this broken again? renamebug.mp4 |
@psfinaki looks like it. Must be for a different reason though. Which version did you see that on? |
Latest and greatest. Like, a couple days old Int Preview. |
It looks like when submitted (i.e. we commit the rename operation), it gets cancelled immediately. |
I cannot reproduce it exactly on latest But what I can see is that first rename works, but after that's applied, it stops finding references to that symbol - which leads to the behavior displayed here. Editing the file, or finding references to another symbol in that file fixes it. So seems like rename application somehow doesn't regenerate @psfinaki if you can try this again, what happens when you give that dialogue a bit of time to show how many occurrences it's going to rename? For me it shows almost instantly - either 2 reference in 1 file and then it works, or, 0 references in 0 files and then it doesn't. |
Update, the issue only manifests itself with Live Buffers turned off - and they did turn off for me inexplicably, which is also suspicious. Same with Cache parsing results and Keep all background symbol uses. Potentially might be related to the VS settings new UI. With my usual configuration and all those things turned on, I cannot reproduce any renaming issues with this code. |
@0101 so I am on the latest main and here is another fun discovery: looks like the renaming works when applied to the definition and doesn't work when applied to the application. Doesn't work as in - broken already at the phase of reference discovery (as you specify in the comment). Take a look: Recording.2023-10-24.124133.mp4 |
Interesting. I cannot reproduce that (past what I could previously). @psfinaki can you post screenshots of your settings? F# Advanced and Performance. |
Weird, can't reproduce it with exactly those settings with an extension built from our |
Probably two bugs here:
bug.mp4
Note I am not explicitly saving the document on-the-go.
The text was updated successfully, but these errors were encountered: