Skip to content

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

Merged
tido64 merged 2 commits intomicrosoft:mainfrom
JasonVMo:ts-service-writefile
Jan 23, 2025
Merged

feat(typescript-service): Pick up the writeFile override from the LanguageServiceHost when it is overridden#3491
tido64 merged 2 commits intomicrosoft:mainfrom
JasonVMo:ts-service-writefile

Conversation

@JasonVMo
Copy link
Collaborator

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
@JasonVMo JasonVMo deleted the ts-service-writefile branch February 4, 2025 22:32
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