Skip to content
Browse files

Fix copy-paste brainfart

  • Loading branch information...
1 parent 0744f9a commit 56cb4e0231bb898edb19382f32e873fbac7aac99 Sergi Mansilla committed
Showing with 22 additions and 18 deletions.
  1. +22 −18 plugins-server/cloud9.ide.shell/shell.js
View
40 plugins-server/cloud9.ide.shell/shell.js
@@ -155,25 +155,29 @@ util.inherits(ShellPlugin, Plugin);
});
};
- this["command-commandhints"] = function(message) {
- var commands = {};
- var _self = this;
+ this["command-mv"] =
+ this["command-mkdir"] =
+ this["command-rm"] =
+ this["command-pwd"] =
+ this["command-ls"] = function(message) {
+ var self = this;
+ this.processCount += 1;
+ this.pm.exec("shell", {
+ command: message.command,
+ args: message.argv.slice(1),
+ cwd: message.cwd || this.workspaceDir,
+ extra: message.extra
+ }, function(code, out, err) {
+ self.processCount -= 1;
- Async.list(Object.keys(this.workspace.plugins))
- .each(function(sName, next) {
- var oExt = _self.workspace.getExt(sName);
- if (oExt.$commandHints) {
- oExt.$commandHints(commands, message, next);
- }
- else {
- if (oExt.metadata && oExt.metadata.commands)
- c9util.extend(commands, oExt.metadata.commands);
- next();
- }
- })
- .end(function() {
- _self.sendResult(0, message.command, commands);
- });
+ self.sendResult(0, message.command, {
+ code : code,
+ argv : message.argv,
+ err : err,
+ out : out,
+ extra : message.extra
+ });
+ });
};
this["command-cd"] = function(message) {

0 comments on commit 56cb4e0

Please sign in to comment.
Something went wrong with that request. Please try again.