Skip to content

Commit c42f1c6

Browse files
committed
Got everything loaded
1 parent 0dd5338 commit c42f1c6

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
configDefaults: {
55
},
66
activate: function(){
7+
console.log("Hi");
78
var self = this;
89
self.atomCTS = new AtomCTS();
910
atom.workspaceView.command("cts:convert", function() {

lib/atom-cts.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ var cp = require('child_process');
33
var _ = require('underscore-plus');
44
var CTS_Worker = null;
55

6+
var Subscriber = require('emissary').Subscriber;
7+
68
module.exports = AtomCTS = (function(){
79

810
CTS_Worker = cp.fork(__dirname + '/worker.js');
@@ -19,14 +21,15 @@ module.exports = AtomCTS = (function(){
1921
};
2022
})(this));
2123
this.config = {globals:{},options:{}};
22-
console.error("Loading config");
2324
this.loadConfig();
2425
}
2526

27+
Subscriber.includeInto(AtomCTS);
28+
2629
AtomCTS.prototype.convert = function() {
2730
console.error("hi");
28-
var editor = atom.workspace.activePaneItem
29-
var selection = editor.getSelection()
31+
var editor = atom.workspace.activePaneItem;
32+
var selection = editor.getSelection();
3033

3134
var figlet = require('figlet');
3235
var opts = {font: "Larry 3D 2"};

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"dependencies": {
1414
"figlet": "1.0.8",
15-
"underscore-plus": "~1.0.4"
15+
"underscore-plus": "~1.0.4",
16+
"emissary": "1.x"
1617
}
1718
}

0 commit comments

Comments
 (0)