Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
amcasey merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
amcasey:GH19165amcasey/TypeScript:GH19165Copy head branch name to clipboard
Dec 15, 2017
Merged

Stop assuming code fix test changes are in the originating file#20713
amcasey merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
amcasey:GH19165amcasey/TypeScript:GH19165Copy head branch name to clipboard

Conversation

@amcasey

@amcasey amcasey commented Dec 15, 2017

Copy link
Copy Markdown
Member

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

amcasey commented Dec 15, 2017

Copy link
Copy Markdown
Member Author

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.