new guessing

This commit is contained in:
dloverin authored and Erik Tierney committed 2013-04-05 12:51:39 -04:00
1 parent 3107c979c7
commit c887e8760f
5 files changed
+90 -4

No files matched your search

@@ -336,8 +336,7 @@ define(function (require, exports, module) {
type.property !== cachedType.property ||
type.context !== cachedType.context ||
type.showFunctionType !== cachedType.showFunctionType ||
query.length === 0 ||
(cachedHints.length === 0 && query.length === 2)) { // FIXME: length of 2 is special because that is when tern starts guessing
query.length == 0) {
var offset = session.getOffset(),
scopeResponse = ScopeManager.requestHints(session, session.editor.document, offset),
self = this;