Skip to content

Conversation

@forki
Copy link
Contributor

@forki forki commented Dec 27, 2016

image

@vasily-kirichenko
Copy link
Contributor

I'm pretty sure you should start an Inline Rename session for this fix, because without it you do not change all the DU case occurences:

image

See
http://source.roslyn.io/#Microsoft.CodeAnalysis.EditorFeatures/Implementation/RenameTracking/RenameTrackingTaggerProvider.cs,39

However, this code is not from a Code Fix, maybe we should find all symbol references on our own and "change" all documents where it's used to get nice multi-file preview. Or maybe not. Could you look for a Code Fix that changes multiple documents in the Roslyn sources?

Looks like we should use this overload, which expect us to return the whole new Solution:

image

@forki
Copy link
Contributor Author

forki commented Dec 27, 2016

Mhm not sure if can do this right now. If you think you see a solution then could you please try it? You have much more experience with the VFPT features.

@vasily-kirichenko
Copy link
Contributor

@forki I've send a PR, looks like this:

1

Make ProposeUppercaseLabel code fix work on all symbol uses
@forki
Copy link
Contributor Author

forki commented Dec 27, 2016

That's awesome

@forki
Copy link
Contributor Author

forki commented Dec 27, 2016

As discussed in different channel: @vasily-kirichenko will extract the "find references" logic soon since we believe this will be used in many code fixes.

Conflicts:
	vsintegration/src/FSharp.Editor/Common/CommonHelpers.fs
@forki
Copy link
Contributor Author

forki commented Dec 28, 2016

ready for review.

@forki
Copy link
Contributor Author

forki commented Dec 28, 2016

thanks @vasily-kirichenko for refactoring. @KevinRansom this is ready

@forki
Copy link
Contributor Author

forki commented Dec 29, 2016

appveyor fail is unrelated

@KevinRansom KevinRansom merged commit 95fc0b3 into dotnet:master Dec 29, 2016
@forki forki deleted the toupper branch December 29, 2016 18:55
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
* Propose Uppercase for FS0053

* make ProposeUppercaseLabel code fix work on all symbol uses

* cleanup

* refactor with asyncMaybe

* add ParseAndCheckDocument

* refactor ProposeUppercaseLabel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants