mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
modified: src/extensions/default/JavaScriptCodeHints/ScopeManager.js
Don't update the modified range when 'null' keys (ctrl-space) are hinted. modified: src/extensions/default/JavaScriptCodeHints/main.js When changing files, reset documentChanges to null. modified: src/extensions/default/JavaScriptCodeHints/unittests.js Restore that content of a file after each test. Update a test to wait for hints after it asks for hints. If the hints are not waited for the editor will be torn down before the hint completes, causing a null pointer exception.
This commit is contained in:
1 parent
22192c9e7f
commit
bcba5e3779
3 files changed
+16
-9
No files matched your search
@@ -935,7 +935,7 @@ define(function (require, exports, module) {
|
||||
numAddedFiles = 0;
|
||||
stopAddingFiles = false;
|
||||
numInitialFiles = files.length;
|
||||
|
||||
|
||||
ternPromise.done(function (worker) {
|
||||
worker.postMessage({
|
||||
type : MessageIds.TERN_INIT_MSG,
|
||||
@@ -979,7 +979,8 @@ define(function (require, exports, module) {
|
||||
var addFilesDeferred = $.Deferred();
|
||||
|
||||
_lastPrimePump = shouldPrimePump;
|
||||
|
||||
documentChanges = null;
|
||||
|
||||
addFilesPromise = addFilesDeferred.promise();
|
||||
pr = ProjectManager.getProjectRoot() ? ProjectManager.getProjectRoot().fullPath : null;
|
||||
|
||||
@@ -1002,7 +1003,6 @@ define(function (require, exports, module) {
|
||||
}
|
||||
|
||||
isDocumentDirty = false;
|
||||
|
||||
resolvedFiles = {};
|
||||
|
||||
projectRoot = pr;
|
||||
|
||||
Reference in new issue
Block a user