mirror of
https://github.com/adobe/brackets.git
synced 2024-11-20 09:53:00 +01:00
Sending New File Save/Open Analytics Data (#14700)
This commit is contained in:
parent
6f80d3c8c2
commit
aa085a16e0
@ -689,6 +689,15 @@ define(function (require, exports, module) {
|
||||
var doc = DocumentManager.createUntitledDocument(_nextUntitledIndexToUse++, defaultExtension);
|
||||
MainViewManager._edit(MainViewManager.ACTIVE_PANE, doc);
|
||||
|
||||
HealthLogger.sendAnalyticsData(
|
||||
HealthLogger.commonStrings.USAGE +
|
||||
HealthLogger.commonStrings.FILE_OPEN +
|
||||
HealthLogger.commonStrings.FILE_NEW,
|
||||
HealthLogger.commonStrings.USAGE,
|
||||
HealthLogger.commonStrings.FILE_OPEN,
|
||||
HealthLogger.commonStrings.FILE_NEW
|
||||
);
|
||||
|
||||
return new $.Deferred().resolve(doc).promise();
|
||||
}
|
||||
|
||||
@ -968,6 +977,7 @@ define(function (require, exports, module) {
|
||||
} else {
|
||||
openNewFile();
|
||||
}
|
||||
HealthLogger.fileSaved(doc);
|
||||
})
|
||||
.fail(function (error) {
|
||||
_showSaveFileError(error, path)
|
||||
|
@ -42,6 +42,7 @@ define(function (require, exports, module) {
|
||||
|
||||
var commonStrings = { USAGE: "usage",
|
||||
FILE_OPEN: "fileOpen",
|
||||
FILE_NEW: "newfile",
|
||||
FILE_SAVE: "fileSave",
|
||||
FILE_CLOSE: "fileClose",
|
||||
LANGUAGE_CHANGE: "languageChange",
|
||||
|
Loading…
Reference in New Issue
Block a user