Skip to content

How to config the formatter to just reload the file after format instead of read from the output of the formatter ? #9501

Answered by pascalkuthe
Dangerise asked this question in Q&A
Discussion options

You must be logged in to vote

The formatter needs to output to stdout otherwise it won't work. Every formatter I ever encountered has an option for that.

Reloading the file from disk unsuited since that is essentially a race condition

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Dangerise
Comment options

You must be logged in to vote
1 reply
@Dangerise
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants