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

feat(typescript-service): Pick up the writeFile override from the LanguageServiceHost when it is overridden #3491

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

JasonVMo
Copy link
Contributor

Description

Typescript allows plugging the writeFile implementation in the LanguageServiceHost when using a language service. It will use this override internally but in our Project code we were ignoring that setting and falling back to the default implementation. This will use the override value to write files out in EmitFile if it is set, otherwise using the system version.

Test plan

This has been tested with a custom writer in a separate change, but for this change just rely on unit testing. There will be no behavioral change unless the writeFile value is set, and by default it is not.

@tido64 tido64 merged commit d60608a into microsoft:main Jan 23, 2025
10 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