File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ module.exports = {
4
4
configDefaults : {
5
5
} ,
6
6
activate : function ( ) {
7
+ console . log ( "Hi" ) ;
7
8
var self = this ;
8
9
self . atomCTS = new AtomCTS ( ) ;
9
10
atom . workspaceView . command ( "cts:convert" , function ( ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ var cp = require('child_process');
3
3
var _ = require ( 'underscore-plus' ) ;
4
4
var CTS_Worker = null ;
5
5
6
+ var Subscriber = require ( 'emissary' ) . Subscriber ;
7
+
6
8
module . exports = AtomCTS = ( function ( ) {
7
9
8
10
CTS_Worker = cp . fork ( __dirname + '/worker.js' ) ;
@@ -19,14 +21,15 @@ module.exports = AtomCTS = (function(){
19
21
} ;
20
22
} ) ( this ) ) ;
21
23
this . config = { globals :{ } , options :{ } } ;
22
- console . error ( "Loading config" ) ;
23
24
this . loadConfig ( ) ;
24
25
}
25
26
27
+ Subscriber . includeInto ( AtomCTS ) ;
28
+
26
29
AtomCTS . prototype . convert = function ( ) {
27
30
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 ( ) ;
30
33
31
34
var figlet = require ( 'figlet' ) ;
32
35
var opts = { font : "Larry 3D 2" } ;
Original file line number Diff line number Diff line change 12
12
},
13
13
"dependencies" : {
14
14
"figlet" : " 1.0.8" ,
15
- "underscore-plus" : " ~1.0.4"
15
+ "underscore-plus" : " ~1.0.4" ,
16
+ "emissary" : " 1.x"
16
17
}
17
18
}
You can’t perform that action at this time.
0 commit comments