Merge remote-tracking branch 'origin/master' into randy/issue-7706

This commit is contained in:
Randy Edmunds committed 2014-08-06 11:11:47 -07:00
commit 06cae4c0d9
132 files changed
+2881 -1494

No files matched your search

@@ -68,6 +68,7 @@ define(function (require, exports, module) {
var MAX_HINTS = 30, // how often to reset the tern server
LARGE_LINE_CHANGE = 100,
LARGE_LINE_COUNT = 10000,
OFFSET_ZERO = {line: 0, ch: 0};
var config = {};
@@ -559,7 +560,7 @@ define(function (require, exports, module) {
result = {type: MessageIds.TERN_FILE_INFO_TYPE_EMPTY,
name: path,
text: ""};
} else if (!preventPartialUpdates &&
} else if (!preventPartialUpdates && session.editor.lineCount() > LARGE_LINE_COUNT &&
(documentChanges.to - documentChanges.from < LARGE_LINE_CHANGE) &&
documentChanges.from <= start.line &&
documentChanges.to > end.line) {
@@ -63,7 +63,7 @@ define(function (require, exports, module) {
PreferencesManager.definePreference("jscodehints.detectedExclusions", "array", []);
// This preference controls when Tern will time out when trying to understand files
PreferencesManager.definePreference("jscodehints.inferenceTimeout", "number", 5000);
PreferencesManager.definePreference("jscodehints.inferenceTimeout", "number", 10000);
// This preference controls whether to prevent hints from being displayed when dot is typed
PreferencesManager.definePreference("jscodehints.noHintsOnDot", "boolean", false);