mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
load additional files if the loaded files are not using modules.
refactored unittest files.
This commit is contained in:
1 parent
3ec230c473
commit
f2ba60c17f
19 files changed
+645
-135
No files matched your search
@@ -44,10 +44,18 @@ define(function (require, exports, module) {
|
||||
this.ternHints = [];
|
||||
this.ternProperties = [];
|
||||
this.fnType = null;
|
||||
this.builtins = ScopeManager.getBuiltins();
|
||||
this.builtins.push("requirejs.js"); // consider these globals as well.
|
||||
this.builtins = null;
|
||||
}
|
||||
|
||||
Session.prototype._getBuiltins = function () {
|
||||
if (!this.builtins) {
|
||||
this.builtins = ScopeManager.getBuiltins();
|
||||
this.builtins.push("requirejs.js"); // consider these globals as well.
|
||||
}
|
||||
|
||||
return this.builtins;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the name of the file associated with the current session
|
||||
*
|
||||
@@ -319,7 +327,9 @@ define(function (require, exports, module) {
|
||||
if (token.className === "property") {
|
||||
propertyLookup = true;
|
||||
}
|
||||
if (this.findPreviousDot()) {
|
||||
|
||||
cursor = this.findPreviousDot();
|
||||
if (cursor) {
|
||||
propertyLookup = true;
|
||||
context = this.getContext(cursor);
|
||||
}
|
||||
@@ -352,7 +362,7 @@ define(function (require, exports, module) {
|
||||
|
||||
var MAX_DISPLAYED_HINTS = 500,
|
||||
type = this.getType(),
|
||||
builtins = this.builtins,
|
||||
builtins = this._getBuiltins(),
|
||||
hints;
|
||||
|
||||
/**
|
||||
@@ -430,6 +440,7 @@ define(function (require, exports, module) {
|
||||
if (hints.length > MAX_DISPLAYED_HINTS) {
|
||||
hints = hints.slice(0, MAX_DISPLAYED_HINTS);
|
||||
}
|
||||
|
||||
return hints;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user