crystal-lang-tools / vscode-crystal-lang

Yet another VSCode extension for Crystal Programming Language
https://marketplace.visualstudio.com/items?itemName=crystal-lang-tools.crystal-lang
MIT License
275 stars 57 forks source link

Refactor to have one onDidSaveTextDocument #198

Open nobodywasishere opened 2 months ago

nobodywasishere commented 2 months ago

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) }
})