File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ if (debug_1.debugSync) {
16
16
parent . sendToIpcOnlyLast = function ( x ) { return x ; } ;
17
17
}
18
18
function startWorker ( ) {
19
- parent . startWorker ( __dirname + '/child.js' , showError , atomConfig . typescriptServices ? [ atomConfig . typescriptServices ] : [ ] ) ;
19
+ if ( ! debug_1 . debugSync ) {
20
+ parent . startWorker ( __dirname + '/child.js' , showError , atomConfig . typescriptServices ? [ atomConfig . typescriptServices ] : [ ] ) ;
21
+ }
20
22
}
21
23
exports . startWorker = startWorker ;
22
24
function stopWorker ( ) {
23
- parent . stopWorker ( ) ;
25
+ if ( ! debug_1 . debugSync ) {
26
+ parent . stopWorker ( ) ;
27
+ }
24
28
}
25
29
exports . stopWorker = stopWorker ;
26
30
function showError ( error ) {
Original file line number Diff line number Diff line change @@ -24,11 +24,15 @@ if (debugSync) {
24
24
}
25
25
26
26
export function startWorker ( ) {
27
- parent . startWorker ( __dirname + '/child.js' , showError , atomConfig . typescriptServices ? [ atomConfig . typescriptServices ] : [ ] ) ;
27
+ if ( ! debugSync ) {
28
+ parent . startWorker ( __dirname + '/child.js' , showError , atomConfig . typescriptServices ? [ atomConfig . typescriptServices ] : [ ] ) ;
29
+ }
28
30
}
29
31
30
32
export function stopWorker ( ) {
31
- parent . stopWorker ( ) ;
33
+ if ( ! debugSync ) {
34
+ parent . stopWorker ( ) ;
35
+ }
32
36
}
33
37
34
38
function showError ( error : Error ) {
You can’t perform that action at this time.
0 commit comments