Merge remote-tracking branch 'upstream/tern-experiments' into tern-experiments

Conflicts:
	src/extensions/default/JavaScriptCodeHints/ScopeManager.js
This commit is contained in:
dloverin committed 2013-03-26 09:13:32 -04:00
commit 7361589145
3 files changed
+70 -17

No files matched your search

@@ -40,6 +40,7 @@ define(function (require, exports, module) {
function Session(editor) {
this.editor = editor;
this.path = editor.document.file.fullPath;
this.ternHints = [];
}
/**
@@ -538,7 +539,8 @@ define(function (require, exports, module) {
hints;
if (type.property) {
var ternHints = ScopeManager.getTernHints("dir", "file", offset, this.editor.document.getText());
var ternHints = this.ternHints;
//console.log("Got " + (ternHints ? ternHints.length : 0) + " hints from tern");
if( ternHints && ternHints.length > 0 ) {
hints = ternHints;
hints.sort(compareByName);
@@ -566,6 +568,9 @@ define(function (require, exports, module) {
return hints;
};
Session.prototype.setTernHints = function(newHints) {
this.ternHints = newHints;
}
module.exports = Session;
});