Skip to content

Commit fedcd12

Browse files
committed
Replacing tabs with soft-tabs; Renamed internal var for python plugin; Added rundebugbrk to switch stmt
1 parent bf1f3da commit fedcd12

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

server/cloud9/ext/run-node/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ sys.inherits(DebuggerPlugin, Plugin);
3333
this.CHROME_DEBUG_PORT = 9222;
3434

3535
this.command = function(user, message, client) {
36-
if (!(/js/.test(message.runner)))
37-
return false;
38-
36+
if (!(/js/.test(message.runner)))
37+
return false;
38+
3939
var _self = this;
4040

4141
var cmd = (message.command || "").toLowerCase(),

server/cloud9/ext/run-python/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ var Path = require("path"),
1010
sys = require("sys"),
1111
netutil = require("cloud9/netutil");
1212

13-
var DebuggerPlugin = module.exports = function(ide) {
13+
var PythonRuntimePlugin = module.exports = function(ide) {
1414
this.ide = ide;
1515
this.hooks = ["command"];
1616
this.name = "debugger";
1717
};
1818

19-
sys.inherits(DebuggerPlugin, Plugin);
19+
sys.inherits(PythonRuntimePlugin, Plugin);
2020

2121
(function() {
2222
this.init = function() {
@@ -29,15 +29,15 @@ sys.inherits(DebuggerPlugin, Plugin);
2929
this.PYTHON_DEBUG_PORT = 7984;
3030

3131
this.command = function(user, message, client) {
32-
if (!(/py/.test(message.runner)))
33-
return false;
34-
32+
if (!(/py/.test(message.runner)))
33+
return false;
34+
3535
var _self = this;
3636

3737
var cmd = (message.command || "").toLowerCase(),
3838
res = true;
3939
switch (cmd) {
40-
case "run": case "rundebug": // We don't debug python just yet.
40+
case "run": case "rundebug": case "rundebugbrk": // We don't debug python just yet.
4141
this.$run(message, client);
4242
break;
4343
case "kill":
@@ -134,4 +134,4 @@ sys.inherits(DebuggerPlugin, Plugin);
134134
callback();
135135
};
136136

137-
}).call(DebuggerPlugin.prototype);
137+
}).call(PythonRuntimePlugin.prototype);

0 commit comments

Comments
 (0)