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
@@ -331,7 +331,7 @@ define(function (require, exports, module) {
|
||||
/**
|
||||
* Inserts the hint selected by the user into the current editor.
|
||||
*
|
||||
* @param {jQuery.Object} hint - hint object to insert into current editor
|
||||
* @param {jQuery.Object} $hintObj - hint object to insert into current editor
|
||||
* @return {boolean} - should a new hinting session be requested
|
||||
* immediately after insertion?
|
||||
*/
|
||||
@@ -421,8 +421,7 @@ define(function (require, exports, module) {
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
// load the extension
|
||||
// load the extension
|
||||
AppInit.appReady(function () {
|
||||
|
||||
/*
|
||||
@@ -433,14 +432,9 @@ define(function (require, exports, module) {
|
||||
* @param {boolean} primePump - true if the pump should be primed.
|
||||
*/
|
||||
function initializeSession(editor, primePump) {
|
||||
ScopeManager.handleEditorChange(editor.document);
|
||||
session = new Session(editor);
|
||||
ScopeManager.handleEditorChange(session, editor.document, primePump);
|
||||
cachedHints = null;
|
||||
|
||||
// prime pump for hints so the first user request is fast
|
||||
if (primePump) {
|
||||
ScopeManager.requestHints(session, session.editor.document, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user