Refactor to have one onDidSaveTextDocument
Closed this issue · 0 comments
nobodywasishere commented
Instead of each piece of code registering its own onDidSaveTextDocument
, there should instead be one in the main extension file that calls them one after another. Currently some of them can run at the same time which can cause problems.
workspace.onDidSaveTextDocument((e) => {
handleDocumentProblems(e)
.then { handleDocumentSpecs(e) }
})