adobe/brackets — pull request #6677 by dangoor (2014-01-29 03:34:18+00:00)
Title: Avoid re-running linting when there are no changes to prefs

In #6676, @peterflynn reported that CodeInspection would keep adding listeners and re-run many times as you switch between files (exacerbated by the fact that the JSLint extension would also re-run as it detected changes).

This change corrects that behavior by confirming that there was an actual change between the new value and old. Note that the first time this runs in the Brackets project, you might see JSLint run twice (once when CodeInspection turns on and again when the JSLint preferences are set)... but this is legitimate because both of those changes could result in different lint results. As you switch around between files within Brackets, you'll see just a single linting event.

cc @redmunds