Skip to content

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

Merged
amcasey merged 1 commit into
microsoft:masterfrom
amcasey:GH19165
Dec 15, 2017
Merged

Stop assuming code fix test changes are in the originating file#20713
amcasey merged 1 commit into
microsoft:masterfrom
amcasey:GH19165

Conversation

@amcasey
Copy link
Copy Markdown
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 a user and RyanCavanaugh December 15, 2017 00:56
@RyanCavanaugh
Copy link
Copy Markdown
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
Copy Markdown
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