Skip to content

Commit 2c2ed47

Browse files
committed
deploy: 0b2f639
1 parent 7e541c2 commit 2c2ed47

File tree

106 files changed

+500
-565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+500
-565
lines changed

appConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ window.AppConfig = {
2121
"extension_url": "https://brackets-archive.github.io/brackets-extensions/extensions/{0}-{1}.zip",
2222
"extension_store_url": "https://store.core.ai/src/",
2323
"linting.enabled_by_default": true,
24-
"build_timestamp": "2023-01-09T13:21:14.173Z",
24+
"build_timestamp": "2023-01-10T11:31:55.127Z",
2525
"googleAnalyticsID": "G-P4HJFPDB76",
2626
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
2727
"coreAnalyticsID": "phoenix",
@@ -31,7 +31,7 @@ window.AppConfig = {
3131
"bugsnagEnv": "development"
3232
},
3333
"name": "Phoenix",
34-
"version": "3.0.13-19066",
34+
"version": "3.0.13-19070",
3535
"apiVersion": "3.0.13",
3636
"homepage": "https://core.ai",
3737
"issues": {

assets/default-project/en.zip

0 Bytes
Binary file not shown.

assets/sample-projects/HTML5.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

assets/sample-projects/explore.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

cacheManifest.json

Lines changed: 51 additions & 51 deletions
Large diffs are not rendered by default.

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"extension_url": "https://brackets-archive.github.io/brackets-extensions/extensions/{0}-{1}.zip",
2121
"extension_store_url": "https://store.core.ai/src/",
2222
"linting.enabled_by_default": true,
23-
"build_timestamp": "2023-01-09T13:21:14.173Z",
23+
"build_timestamp": "2023-01-10T11:31:55.127Z",
2424
"googleAnalyticsID": "G-P4HJFPDB76",
2525
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
2626
"coreAnalyticsID": "phoenix",
@@ -30,7 +30,7 @@
3030
"bugsnagEnv": "development"
3131
},
3232
"name": "Phoenix",
33-
"version": "3.0.13-19066",
33+
"version": "3.0.13-19070",
3434
"apiVersion": "3.0.13",
3535
"homepage": "https://core.ai",
3636
"issues": {

extensibility/ExtensionDownloader.js

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,26 @@ define(function (require, exports, module) {
7070
.then(()=>{
7171
d.resolve(destinationDirectory + "/" + guessedName);
7272
})
73-
.catch((err)=>{
74-
console.error("Error extracting extension zip", err);
75-
d.reject();
73+
.catch((extractErr)=>{
74+
console.error("Error extracting extension zip, cleaning up", extractErr);
75+
FileSystem.getFileForPath(destinationDirectory + "/" + guessedName)
76+
.unlink((unlinkError)=>{
77+
if(unlinkError){
78+
console.error("Error cleaning up extenstion folder: ",
79+
destinationDirectory + "/" + unlinkError);
80+
}
81+
d.reject();
82+
});
7683
});
7784
});
7885
}
7986
},
8087
progress: function (status){
81-
if(status.percent > 0){
82-
exports.trigger(EVENT_DOWNLOAD_FILE_PROGRESS, status.percent);
88+
if(status.percent === 100) {
89+
exports.trigger(EVENT_EXTRACT_FILE_PROGRESS, 0);
90+
return;
8391
}
92+
exports.trigger(EVENT_DOWNLOAD_FILE_PROGRESS, status.percent || 0);
8493
},
8594
abortCheck: function () {
8695
return downloadCancelled[downloadId];
@@ -104,9 +113,29 @@ define(function (require, exports, module) {
104113
return d.promise();
105114
}
106115

116+
/**
117+
* Removes the extension at the given path.
118+
*
119+
* @param {string} path The absolute path to the extension to remove.
120+
* @return {$.Promise} A promise that's resolved when the extension is removed, or
121+
* rejected if there was an error.
122+
*/
123+
function remove(path) {
124+
const d = new $.Deferred();
125+
FileSystem.getFileForPath(path).unlink(err=>{
126+
if(err){
127+
d.reject();
128+
return;
129+
}
130+
d.resolve();
131+
});
132+
return d.promise();
133+
}
134+
107135
exports.downloadFile = downloadFile;
108136
exports.abortDownload = abortDownload;
109137
exports.install = install;
138+
exports.remove = remove;
110139
exports.update = install;
111140
exports.EVENT_DOWNLOAD_FILE_PROGRESS = EVENT_DOWNLOAD_FILE_PROGRESS;
112141
exports.EVENT_EXTRACT_FILE_PROGRESS = EVENT_EXTRACT_FILE_PROGRESS;

0 commit comments

Comments
 (0)