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

Dont filter type aquisition when its not enabled #59351

Merged
merged 2 commits into from
Jul 18, 2024
Merged

Conversation

sheetalkamat
Copy link
Member

This helps getting auto type directives if they wont be needed

Helps with #59338

This helps getting auto type directives if they wont be needed
@@ -1627,6 1627,7 @@ export abstract class Project implements LanguageServiceHost, ModuleResolutionHo
}

protected removeExistingTypings(include: string[]): string[] {
if (!include.length) return include;
Copy link
Member

Choose a reason for hiding this comment

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

Should this return a copy? Or is it fine to share?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not needed since the array is just used to set the value as new include option in type aquisition.
I am wondering if i should make this private .. not idea why this was protected.

Copy link
Member

Choose a reason for hiding this comment

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

Could it just be readonly string[] at that point? (But, fine as-is)

Copy link
Member Author

Choose a reason for hiding this comment

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

it wont match the TypeAcquisitions input property and thats why i left it like that.

@sheetalkamat sheetalkamat merged commit f8a7913 into main Jul 18, 2024
30 checks passed
@sheetalkamat sheetalkamat deleted the typeAcqFilter branch July 18, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants