Add an API that fires after all documents are saved as part of a Save All action #42913
Labels
api
feature-request
Request for new features or functionality
*out-of-scope
Posted issue is not in scope of VS Code
I have some functionality in Dart Code that reloads on-save. Currently I use
onDidSaveTextDocument
but this fires multiple times if you useSave All
so I have to de-bounce it to fire my reload only once. While this works, it introduces an artificial delay and is also a bit of a race - depending on the timing of saving it may still fire multiple times (finding a value that works perfectly is impossible).It would be great if there was something like a
vs.workspace.onDidSaveTestDocuments
that fired after all saves are complete from a single operation (whether it be save all or an individual save that only affected one file, including when saves are a result of hittingF5
).The text was updated successfully, but these errors were encountered: