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: copy global types into hidden folder in IDE contexts #2561

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

dummdidumm
Copy link
Member

@dummdidumm dummdidumm commented Nov 5, 2024

Since the global types now reference svelte/... imports, they need to be placed in the same context the users' Svelte package lives in. Else these imports would load the types of the Svelte version that comes bundled with the IDE.

#2493

(side note: we had this problem before in #2109 when loading svelte/elements, but that solution is not applicable here)

Since the global types now reference `svelte/...` imports, they need to be placed in the same context the users' Svelte package lives in. Else these imports would load the types of the Svelte version that comes bundled with the IDE.

#2493

(side note: we had this problem before, when loading `svelte/elements`, and solved it through #9070, but that solution is not applicable here)
Copy link
Member

@jasonlyu123 jasonlyu123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. This resolved the double result for definition and sveltejs/svelte#13268. I can't get the repo of #2493 to work anymore even without the fix. Not sure if the conflict is gone or what, but anyway at least the other problems are fixed.

@dummdidumm dummdidumm merged commit 6180537 into master Nov 6, 2024
3 checks passed
@dummdidumm dummdidumm deleted the hidden-types-folder branch November 6, 2024 08:33
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