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: allow autoImportFileExcludePatterns to ignore files outside the root #2480

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

jasonlyu123
Copy link
Member

The first part of #2479. I will probably open a separate PR to deprioritise the component auto-import later. I did try it before and it should be possible to detect if there is a barrel import in the same list.

getTsUserPreferences(lang: TsUserConfigLang, workspacePath: string | null): ts.UserPreferences {
getTsUserPreferences(
lang: TsUserConfigLang,
normalizedWorkspacePath: string | null
Copy link
Member

Choose a reason for hiding this comment

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

you changed the name here - just for readability, or is there a corresponding normalization missing in another file?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just readability because there is a string concatenation for the pattern. It's already normalized since it's from urlToPath the same as what we did in normalizePath.

@dummdidumm dummdidumm merged commit d994971 into sveltejs:master Aug 30, 2024
3 checks passed
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