mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Merge remote-tracking branch 'origin/master' into randy/issue-5003
This commit is contained in:
commit
6850ed73e3
929 files changed
+49531
-34867
No files matched your search
@@ -430,16 +430,24 @@ define(function (require, exports, module) {
|
||||
}
|
||||
|
||||
var scopeResponse = ScopeManager.requestHints(session, session.editor.document),
|
||||
$deferredHints = $.Deferred();
|
||||
$deferredHints = $.Deferred(),
|
||||
scopeSession = session;
|
||||
|
||||
scopeResponse.done(function () {
|
||||
if (hintsArePending($deferredHints)) {
|
||||
getSessionHints(query, cursor, type, token, $deferredHints);
|
||||
// Verify we are still in same session
|
||||
if (scopeSession === session) {
|
||||
getSessionHints(query, cursor, type, token, $deferredHints);
|
||||
} else {
|
||||
$deferredHints.reject();
|
||||
}
|
||||
}
|
||||
scopeSession = null;
|
||||
}).fail(function () {
|
||||
if (hintsArePending($deferredHints)) {
|
||||
$deferredHints.reject();
|
||||
}
|
||||
scopeSession = null;
|
||||
});
|
||||
|
||||
return $deferredHints;
|
||||
|
||||
Reference in new issue
Block a user