Fix problem where hints are displayed before tern has finished computing the completions.

This means there is now a delay on the first request for hints.
This commit is contained in:
Erik Tierney committed 2013-03-21 16:18:32 -04:00
1 parent 9689288dec
commit d648572395
3 files changed
+50 -11

No files matched your search

@@ -265,7 +265,7 @@ define(function (require, exports, module) {
if (token) {
if (!cachedScope) {
var offset = session.getOffset(),
scopeResponse = ScopeManager.getScopeInfo(session.editor.document, offset),
scopeResponse = ScopeManager.getScopeInfo(session, session.editor.document, offset),
self = this;
if (scopeResponse.hasOwnProperty("promise")) {