mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
remove defaultExclusions preference
This commit is contained in:
1 parent
71a6dfc069
commit
f13b271e05
2 files changed
-13
No files matched your search
@@ -222,16 +222,6 @@ define(function (require, exports, module) {
|
||||
* @return {boolean} true if excluded, false otherwise.
|
||||
*/
|
||||
function isFileExcludedInternal(path) {
|
||||
// The defaultExclusions are the ones we ship with Brackets to filter out files that we know
|
||||
// to be troublesome with current versions of Tern. They can be overridden with a .brackets.json
|
||||
// file in your project. defaultExclusions is an array of globs.
|
||||
var defaultExclusions = PreferencesManager.get("jscodehints.defaultExclusions") || [];
|
||||
if (defaultExclusions &&
|
||||
_.isArray(defaultExclusions) &&
|
||||
_.some(defaultExclusions, _.partial(globmatch, path))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// The detectedExclusions are files detected to be troublesome with current versions of Tern.
|
||||
// detectedExclusions is an array of full paths.
|
||||
var detectedExclusions = PreferencesManager.get("jscodehints.detectedExclusions") || [];
|
||||
|
||||
@@ -56,9 +56,6 @@ define(function (require, exports, module) {
|
||||
matcher = null, // string matcher for hints
|
||||
ignoreChange; // can ignore next "change" event if true;
|
||||
|
||||
// Define the defaultExclusions which are files that are known to cause Tern to run out of control.
|
||||
PreferencesManager.definePreference("jscodehints.defaultExclusions", "array", []);
|
||||
|
||||
// Define the detectedExclusions which are files that have been detected to cause Tern to run out of control.
|
||||
PreferencesManager.definePreference("jscodehints.detectedExclusions", "array", []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user