-
Notifications
You must be signed in to change notification settings - Fork 189
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
SourceFile.formatText() should respect indentation settings #149
Comments
Thanks for reporting this. I'm surprised the underlying typescript compiler printer will always change it to 4 spaces and doesn't have a way to customize that. When formatting, I'll just have to add an extra pass through the file in order to change the 4 spaces to the current manipulation settings. |
This is fixed in 1.2.0. It will also use the newline kind specified in the manipulation settings. Let me know if you notice any issues. |
Thanks a lot! This is fixed now indeed :) |
When I run the following code, the indentationText manipulation setting gets actually ignored inside the
file.formatText();
call. The indentation gets produced as 4 space characters, no matter what is passed to the Ast constructor.The text was updated successfully, but these errors were encountered: