imdone-core 1.53.20 → 1.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/languages.js
CHANGED
|
@@ -17,6 +17,8 @@ module.exports = {
|
|
|
17
17
|
".js": {"name": "javascript", "symbol": "//", "block": cBlock},
|
|
18
18
|
".es6": {"name": "javascript", "symbol": "//", "block": cBlock},
|
|
19
19
|
".es": {"name": "javascript", "symbol": "//", "block": cBlock},
|
|
20
|
+
".ex": {"name": "elixir", "symbol": "#"},
|
|
21
|
+
".exs": {"name": "elixir", "symbol": "#"},
|
|
20
22
|
".jsx": {"name": "jsx", "symbol": "//", "block": cBlock},
|
|
21
23
|
".java": {"name": "java", "symbol": "//", "block": cBlock},
|
|
22
24
|
".properties": {"name": "properties", "symbol": "#"},
|
|
@@ -395,7 +395,9 @@ module.exports = class PluginManager extends Emitter {
|
|
|
395
395
|
performBoardAction(action, task) {
|
|
396
396
|
const plugin = this.getPluginInstance(action.plugin)
|
|
397
397
|
try {
|
|
398
|
-
return
|
|
398
|
+
return action.index
|
|
399
|
+
? plugin.getBoardActions()[action.index].action(task)
|
|
400
|
+
: plugin.getBoardActions().find(a => a.title === action.title).action(task)
|
|
399
401
|
} catch (e) {
|
|
400
402
|
this.pluginError('getBoardActions', plugin, e)
|
|
401
403
|
}
|
package/lib/repository.js
CHANGED
|
@@ -491,7 +491,7 @@ Repository.prototype.addFile = function (file, cb) {
|
|
|
491
491
|
*/
|
|
492
492
|
Repository.prototype.removeFile = function (file) {
|
|
493
493
|
if (!File.isFile(file)) throw new Error(ERRORS.NOT_A_FILE)
|
|
494
|
-
|
|
494
|
+
_remove(this.files, f => f.path === file.path)
|
|
495
495
|
|
|
496
496
|
return this.files
|
|
497
497
|
}
|