Skip to content

Commit

Permalink
fix deadlock running TemplateLint on save (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwickern committed Apr 21, 2023
1 parent f9ab80e commit 602765c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import com.dmarcotte.handlebars.file.HbFileType
import com.emberjs.icons.EmberIcons
import com.intellij.lang.javascript.linter.JSLinterFixAction
import com.intellij.lang.javascript.linter.JSLinterInput
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.fileTypes.FileTypeRegistry
import com.intellij.openapi.progress.ProgressIndicator
Expand Down Expand Up @@ -29,8 +30,7 @@ class TemplateLintFixAction : JSLinterFixAction(
fixFile(psiFile)
}
}

completeCallback.run()
ApplicationManager.getApplication().invokeLater(completeCallback)
}
}

Expand Down

0 comments on commit 602765c

Please sign in to comment.