mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Merge remote-tracking branch 'upstream/master' into pflynn/JakeStoeffler-languageselector-updated
Conflicts: src/styles/brackets_patterns_override.less
This commit is contained in:
commit
3df7680560
291 files changed
+12985
-4387
No files matched your search
@@ -43,6 +43,8 @@ define(function (require, exports, module) {
|
||||
FileSystem = brackets.getModule("filesystem/FileSystem"),
|
||||
FileUtils = brackets.getModule("file/FileUtils"),
|
||||
CodeMirror = brackets.getModule("thirdparty/CodeMirror2/lib/codemirror"),
|
||||
PreferencesManager = brackets.getModule("preferences/PreferencesManager"),
|
||||
globmatch = brackets.getModule("thirdparty/globmatch"),
|
||||
HintUtils = require("HintUtils"),
|
||||
MessageIds = require("MessageIds"),
|
||||
Preferences = require("Preferences");
|
||||
@@ -212,11 +214,18 @@ define(function (require, exports, module) {
|
||||
}
|
||||
|
||||
var excludes = preferences.getExcludedFiles();
|
||||
if (!excludes) {
|
||||
return false;
|
||||
if (excludes && excludes.test(file.name)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return excludes.test(file.name);
|
||||
|
||||
var defaultExclusions = PreferencesManager.get("jscodehints.defaultExclusions");
|
||||
|
||||
// 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.
|
||||
return defaultExclusions &&
|
||||
_.isArray(defaultExclusions) &&
|
||||
_.some(defaultExclusions, _.partial(globmatch, file.fullPath));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -739,7 +748,7 @@ define(function (require, exports, module) {
|
||||
|
||||
return addPendingRequest(path, OFFSET_ZERO, MessageIds.TERN_UPDATE_FILE_MSG);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Handle a request from the worker for text of a file
|
||||
*
|
||||
|
||||
@@ -41,6 +41,7 @@ define(function (require, exports, module) {
|
||||
PerfUtils = brackets.getModule("utils/PerfUtils"),
|
||||
StringMatch = brackets.getModule("utils/StringMatch"),
|
||||
ProjectManager = brackets.getModule("project/ProjectManager"),
|
||||
PreferencesManager = brackets.getModule("preferences/PreferencesManager"),
|
||||
ParameterHintManager = require("ParameterHintManager"),
|
||||
HintUtils = require("HintUtils"),
|
||||
ScopeManager = require("ScopeManager"),
|
||||
@@ -54,7 +55,10 @@ 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;
|
||||
|
||||
|
||||
// Define the defaultExclusions which are files that are known to cause Tern to run out of control.
|
||||
PreferencesManager.definePreference("jscodehints.defaultExclusions", "array", ["ionic*.min.js"]);
|
||||
|
||||
/**
|
||||
* Sets the configuration, generally for testing/debugging use.
|
||||
* Configuration keys are merged into the current configuration.
|
||||
|
||||
Reference in new issue
Block a user