Skip to content

Stop assuming code fix test changes are in the originating file #20713

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

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented Dec 15, 2017

Triggering a fix in one file can result in changes in another file.
Instead of passing around the originating file, retrieve an appropriate
ScriptInfo for each FileTextChanges.

Fixes #19165

Triggering a fix in one file can result in changes in another file.
Instead of passing around the originating file, retrieve an appropriate
`ScriptInfo` for each `FileTextChanges`.

Fixes microsoft#19165
@amcasey amcasey requested review from RyanCavanaugh and a user December 15, 2017 00:56
@RyanCavanaugh
Copy link
Member

If you want to have a test for this, a fourslash file in tests/cases/fourslash/server ought to be able to cover the original repro

@amcasey
Copy link
Member Author

amcasey commented Dec 15, 2017

We established offline that the fourslash server tests are unable to provide coverage of this scenario.

@amcasey amcasey merged commit a3ab1ff into microsoft:master Dec 15, 2017
@amcasey amcasey deleted the GH19165 branch December 15, 2017 22:22
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'declare method' code action creating invalid code
2 participants