Skip to content
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

(fix) prevent duplicate import updates #1466

Merged
merged 3 commits into from May 7, 2022

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
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.

None yet

2 participants