Formatter doesn't recognize file type change #47448
Labels
Bug
A bug in TypeScript
Domain: Formatter
The issue relates to the built-in formatter
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Possibly related to #47446.
In VS Code, use an anonymous buffer whose language starts as "TypeScript" and switches to "TypeScript React". The formatter doesn't adapt correctly.
Format.
Expected
No change
Actual
The text was updated successfully, but these errors were encountered: