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

Make VSCode "wait" until command finishes #75

Open
bilogic opened this issue Feb 17, 2023 · 3 comments
Open

Make VSCode "wait" until command finishes #75

bilogic opened this issue Feb 17, 2023 · 3 comments

Comments

@bilogic
Copy link

bilogic commented Feb 17, 2023

Hi,

  1. I'm using this to run a formatter
  2. But often, before the formatter has completed, I have further made changes to my document
  3. Meaning, formatter will turn A to B, while I also turned A to B', so it prompts me that B' should not be saved as it will overwrite B
  4. Any possible solution for this?

Thank you.

@Daviid-P
Copy link

Daviid-P commented Feb 9, 2024

Possibly related
#82

@bmingles
Copy link
Member

@bilogic any idea how long it takes for your update to run? It’s possible this is not an issue with needing a delay. It may be due to the fact that the extension does not refresh editors after save. I’ve created #103 to investigate the refresh issue. If the issue is that you have a long running command though, I’m not sure there’s really a good way to block things until it’s done.

@bilogic
Copy link
Author

bilogic commented Sep 30, 2024

@bmingles from what I recall, the completion time varies because the commands are bootstrapping each time. If the formatter has a way to hold off the keystrokes until the save is completed, then there won't be a conflict to resolve.

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

No branches or pull requests

3 participants