Skip to content

fix(angular): prevent invalid import recommendations#1815

Merged
sean-perkins merged 2 commits intomainfrom
sp/FW-5379
Nov 9, 2023
Merged

fix(angular): prevent invalid import recommendations#1815
sean-perkins merged 2 commits intomainfrom
sp/FW-5379

Conversation

@sean-perkins
Copy link
Copy Markdown
Contributor

@sean-perkins sean-perkins commented Nov 7, 2023

This PR updates the module and starter templates for Angular to ship with a default VSCode setting that prevents importing from invalid locations.

For example, the base projects using modules will ignore import recommendations from @ionic/angular/standalone and @ionic/angular/common. Standalone projects will ignore import recommendations from @ionic/angular and @ionic/angular/common.

@sean-perkins sean-perkins requested a review from a team as a code owner November 7, 2023 03:37
@sean-perkins sean-perkins requested review from liamdebeasi and removed request for a team November 7, 2023 03:37
Copy link
Copy Markdown
Contributor

@liamdebeasi liamdebeasi left a comment

Choose a reason for hiding this comment

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

I was wondering if we should be placing this in tsconfig.json instead for other IDEs, but sounds like this is a VSCode-specific feature for now: microsoft/TypeScript#49578 (comment)

@sean-perkins sean-perkins merged commit 9027b54 into main Nov 9, 2023
@sean-perkins sean-perkins deleted the sp/FW-5379 branch November 9, 2023 16:31
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