mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Merge branch 'brackets' into glenn/file-system
Conflicts: src/document/DocumentManager.js src/language/JSUtils.js src/project/ProjectManager.js src/search/FindInFiles.js
This commit is contained in:
commit
bfb113d5a9
163 files changed
+4517
-3846
No files matched your search
@@ -34,10 +34,11 @@
|
||||
define(function (require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var _ = brackets.getModule("lodash");
|
||||
|
||||
var DocumentManager = brackets.getModule("document/DocumentManager"),
|
||||
LanguageManager = brackets.getModule("language/LanguageManager"),
|
||||
ProjectManager = brackets.getModule("project/ProjectManager"),
|
||||
CollectionUtils = brackets.getModule("utils/CollectionUtils"),
|
||||
ExtensionUtils = brackets.getModule("utils/ExtensionUtils"),
|
||||
FileSystem = brackets.getModule("filesystem/FileSystem"),
|
||||
FileUtils = brackets.getModule("file/FileUtils"),
|
||||
@@ -309,14 +310,14 @@ define(function (require, exports, module) {
|
||||
var requests,
|
||||
key = file + "@" + offset.line + "@" + offset.ch,
|
||||
$deferredRequest;
|
||||
if (CollectionUtils.hasProperty(pendingTernRequests, key)) {
|
||||
if (_.has(pendingTernRequests, key)) {
|
||||
requests = pendingTernRequests[key];
|
||||
} else {
|
||||
requests = {};
|
||||
pendingTernRequests[key] = requests;
|
||||
}
|
||||
|
||||
if (CollectionUtils.hasProperty(requests, type)) {
|
||||
if (_.has(requests, type)) {
|
||||
$deferredRequest = requests[type];
|
||||
} else {
|
||||
requests[type] = $deferredRequest = $.Deferred();
|
||||
@@ -333,7 +334,7 @@ define(function (require, exports, module) {
|
||||
*/
|
||||
function getPendingRequest(file, offset, type) {
|
||||
var key = file + "@" + offset.line + "@" + offset.ch;
|
||||
if (CollectionUtils.hasProperty(pendingTernRequests, key)) {
|
||||
if (_.has(pendingTernRequests, key)) {
|
||||
var requests = pendingTernRequests[key],
|
||||
requestType = requests[type];
|
||||
|
||||
|
||||
Reference in new issue
Block a user