File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ class IotjsDebugSession extends DebugSession {
431
431
// General helper functions
432
432
433
433
private handleSource ( data : JerryMessageScriptParsed ) : void {
434
- const path = `${ this . _args . localRoot } / ${ this . pathToBasename ( data . name ) } ` ;
434
+ const path = Path . join ( `${ this . _args . localRoot } ` , ` ${ this . pathToBasename ( data . name ) } `) ;
435
435
const src = this . _protocolhandler . getSource ( data . id ) ;
436
436
437
437
const write = c => Fs . writeSync ( Fs . openSync ( path , 'w' ) , c ) ;
Original file line number Diff line number Diff line change @@ -83,12 +83,12 @@ const processCustomEvent = async (e: vscode.DebugSessionCustomEvent): Promise<an
83
83
switch ( e . event ) {
84
84
case 'waitForSource' : {
85
85
if ( vscode . debug . activeDebugSession ) {
86
- const path = await getProgramName ( ) . then ( path => path ) ;
87
- const source = getProgramSource ( path ) ;
86
+ const pathName = await getProgramName ( ) . then ( path => path ) ;
87
+ const source = getProgramSource ( pathName ) ;
88
88
89
89
vscode . debug . activeDebugSession . customRequest ( 'sendSource' , {
90
90
program : {
91
- name : path . split ( '/' ) . pop ( ) ,
91
+ name : pathName . split ( path . delimiter ) . pop ( ) ,
92
92
source
93
93
}
94
94
} ) ;
You can’t perform that action at this time.
0 commit comments