Skip to content

Conversation

@dummdidumm
Copy link
Member

@dummdidumm dummdidumm commented May 1, 2022

The TS plugin and the Svelte extension want to update the same locations after a file move/rename in some cases; prevent that
#1461

The TS plugin and the Svelte extension want to update the same locations after a file move/rename in some cases; prevent that
sveltejs#641
@dummdidumm
Copy link
Member Author

I have a commit pending that splits this up a little more robust, only leaving Svelte file Updates out of the TS plugin, not skipping all renames.

@dummdidumm dummdidumm force-pushed the fix-duplicate-import-update branch from 060fbca to 1db960c Compare May 3, 2022 19:54
@dummdidumm dummdidumm requested a review from jasonlyu123 May 3, 2022 19:59
@dummdidumm
Copy link
Member Author

Just realized that the second commit might make things worse. If there's a TS file and both a TS and Svelte file is updated (moving a folder), maybe the TS server then operates on outdated ranges, leading to broken imports again. Need to check that when I have time.

@dummdidumm dummdidumm merged commit bb58b0c into sveltejs:master May 7, 2022
@dummdidumm dummdidumm deleted the fix-duplicate-import-update branch May 7, 2022 08:52
@janosh
Copy link
Contributor

janosh commented May 15, 2022

@dummdidumm Great work as always on the language tools. They make the Svelte writing experience a lot better!

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.

2 participants