File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 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 {
3030 this . terminal . sendText ( `${ this . matlabCommand } ${ this . noSplashArg } ${ this . noDesktopArg } -sd ${ this . workspaceDirectoryPath } -r "run('${ relativeFilePath } ');"` ) ;
3131 this . hasExecutedOnce = true ;
3232 } 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+ }
3438 }
3539 this . terminal . show ( true ) ;
3640 }
@@ -40,4 +44,4 @@ export default class MatlabTerminal {
4044 this . terminal . sendText ( `cd ${ dir } ` ) ;
4145 this . workspaceDirectoryPath = dir ;
4246 }
43- }
47+ }
You can’t perform that action at this time.
0 commit comments