Only show the dialog when a manual check reveals an error. In that case, also show the error in the status bar in red.
If feedback is desired so that the user always knows when the syntax check is complete, pop up a "Working" or "Please Wait" dialog during the check and close it when done. The user will quickly come to understand that the absence of a completion message means that no syntax errors were found.
This change will result in the following improvements:
- There will be no delay after a manual syntax check because the user will not have to dismiss the dialog when there are no errors.
- All syntax check messages will appear in the same place whether generated from a manual or automatic syntax check.
- On manual checks, the user will still be delayed when there is an error, which may be desirable.
- After a detected error and after the user dismisses the dialog, the error will persist in the status bar until the next syntax check runs.