Implement jscodehints.defaultExclusions preference.

We've had a number of people report problems with Ionic in their projects.
Tern appears to have an issue with the minified Ionic files. I had planned
to add default exclusions so that we could quickly solve pain like this
and this problem appeared to be a good candidate. The repro steps
[reported here](https://github.com/adobe/brackets/issues/7262#issuecomment-41851396)
are fixed with this change.
This commit is contained in:
Kevin Dangoor committed 2014-05-02 22:49:45 -04:00
1 parent adbba9674d
commit d8f4bbf465
2 files changed
+28 -3

No files matched your search

@@ -41,6 +41,7 @@ define(function (require, exports, module) {
StringMatch = brackets.getModule("utils/StringMatch"),
LanguageManager = brackets.getModule("language/LanguageManager"),
ProjectManager = brackets.getModule("project/ProjectManager"),
PreferencesManager = brackets.getModule("preferences/PreferencesManager"),
ParameterHintManager = require("ParameterHintManager"),
HintUtils = require("HintUtils"),
ScopeManager = require("ScopeManager"),
@@ -54,7 +55,9 @@ define(function (require, exports, module) {
cachedToken = null, // the token used in the current hinting session
matcher = null, // string matcher for hints
ignoreChange; // can ignore next "change" event if true;
PreferencesManager.definePreference("jscodehints.defaultExclusions", "array", ["ionic(-.*|\\.bundle|)\\.min\\.js$"]);
/**
* Sets the configuration, generally for testing/debugging use.
* Configuration keys are merged into the current configuration.