File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ export default class MatlabTerminal {
30
30
this . terminal . sendText ( `${ this . matlabCommand } ${ this . noSplashArg } ${ this . noDesktopArg } -sd ${ this . workspaceDirectoryPath } -r "run('${ relativeFilePath } ');"` ) ;
31
31
this . hasExecutedOnce = true ;
32
32
} else {
33
- this . terminal . sendText ( `run('${ relativeFilePath } ')` ) ;
33
+ if ( process . platform === 'win32' ) {
34
+ this . terminal . sendText ( `${ this . matlabCommand } ${ this . noSplashArg } ${ this . noDesktopArg } -r "run('${ relativeFilePath } ');"` ) ;
35
+ } else {
36
+ this . terminal . sendText ( `${ rerun } run('${ relativeFilePath } ')` ) ;
37
+ }
34
38
}
35
39
this . terminal . show ( true ) ;
36
40
}
@@ -40,4 +44,4 @@ export default class MatlabTerminal {
40
44
this . terminal . sendText ( `cd ${ dir } ` ) ;
41
45
this . workspaceDirectoryPath = dir ;
42
46
}
43
- }
47
+ }
You can’t perform that action at this time.
0 commit comments