Uh oh!
There was an error while loading. Please reload this page.
fix(58801): "Move to file" on global code unnecessarily imports/exports, generates invalid code - #58811
Conversation
Andrew Branch (andrewbranch)
left a comment
There was a problem hiding this comment.
This looks right, though it seems like it doesn’t explain the export export export export export export function bug 😄 Was there any clue about why that happened as you were debugging?
Oleksandr Tarasiuk (a-tarasyuk)
commented
Jun 11, 2024
Andrew Branch (@andrewbranch) The
TypeScript/src/services/refactors/moveToFile.ts Lines 901 to 912 in d8086f1 |
Oleksandr Tarasiuk (a-tarasyuk)
commented
Jun 12, 2024
It looks like these changes fix the crash mentioned in #58806., the moveToNewFile_global3.ts test covers this case. |
Andrew Branch (andrewbranch)
commented
Jun 12, 2024
Good to merge as soon as navya9singh signs off! |
Daniel Rosenwasser (DanielRosenwasser)
left a comment
There was a problem hiding this comment.
I think I'm good with this, and I'd like to get it in for 5.5.2.
TypeScript Bot (@typescript-bot) cherry-pick this to release-5.5 and LKG |
…ts, generates invalid code (#58811)
TypeScript Bot (typescript-bot)
commented
Jun 19, 2024
Hey, Daniel Rosenwasser (@DanielRosenwasser)! I've created #58923 for you. |
…e-5.5 (#58923) Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com>
Fixes#58801
Fixes#58806