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) {
1616 parent . sendToIpcOnlyLast = function ( x ) { return x ; } ;
1717}
1818function 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+ }
2022}
2123exports . startWorker = startWorker ;
2224function stopWorker ( ) {
23- parent . stopWorker ( ) ;
25+ if ( ! debug_1 . debugSync ) {
26+ parent . stopWorker ( ) ;
27+ }
2428}
2529exports . stopWorker = stopWorker ;
2630function showError ( error ) {
Original file line number Diff line number Diff line change @@ -24,11 +24,15 @@ if (debugSync) {
2424}
2525
2626export 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+ }
2830}
2931
3032export function stopWorker ( ) {
31- parent . stopWorker ( ) ;
33+ if ( ! debugSync ) {
34+ parent . stopWorker ( ) ;
35+ }
3236}
3337
3438function showError ( error : Error ) {
You can’t perform that action at this time.
0 commit comments