File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,8 @@ import { DirectiveState } from '../states/directive.state';
2121import { SymbolIndex , SymbolData } from './symbol-index' ;
2222import { StaticSymbol } from '@angular/compiler' ;
2323import { menus } from '../app' ;
24- import { existsSync } from 'fs' ;
2524import { join } from 'path' ;
2625
27- const cwd = join ( __dirname , '..' ) ;
28-
2926const success = ( sender , msg , payload ) => {
3027 sender . send ( msg , Status . Success , payload ) ;
3128} ;
@@ -63,12 +60,7 @@ export class BackgroundApp {
6360 private taskQueue : TaskQueue ;
6461
6562 init ( ) {
66- let script = './app/parser.js' ;
67- if ( existsSync ( join ( cwd , 'app.asar' ) ) ) {
68- script = 'app.asar/app/parser.js' ;
69- }
70-
71- this . slaveProcess = SlaveProcess . create ( script ) ;
63+ this . slaveProcess = SlaveProcess . create ( join ( __dirname , 'parser.js' ) ) ;
7264 this . taskQueue = new TaskQueue ( ) ;
7365 ipcMain . on ( Message . LoadProject , ( e , tsconfig : string ) => {
7466 if ( ! this . slaveProcess . connected ) {
You can’t perform that action at this time.
0 commit comments