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

Prettier formatter inserts content from other buffer #110

Open
leejuyuu opened this issue Oct 6, 2023 · 1 comment
Open

Prettier formatter inserts content from other buffer #110

leejuyuu opened this issue Oct 6, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@leejuyuu
Copy link

leejuyuu commented Oct 6, 2023

Hello, thanks for making this plug-in! I have been trying the prettier formatter from the guard-collection to format the buffer on save. I generally open multiple buffers at the same time (let's say foo.ts, bar.ts, etc.). Sometimes when I save foo.ts, the formatter formats the buffer but also inserts the content of bar.ts into the buffer.

This (seems to) happen randomly, and I currently have no clue how to reproduce this. Will appreciate any suggestion on how I can track down the problem.

@xiaoshihou514
Copy link
Collaborator

Hmm, this shouldn't have been possible because we keep track of the buffer number. But we will see.

@xiaoshihou514 xiaoshihou514 added the help wanted Extra attention is needed label Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants