File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,21 @@ export default class Runner {
149
149
}
150
150
151
151
args ( codeContext , extraArgs ) {
152
- let args = ( this . scriptOptions . cmdArgs . concat ( extraArgs ) ) . concat ( this . scriptOptions . scriptArgs ) ;
152
+ // extraArgs = default command args from:
153
+ // - the grammars/<grammar>.coffee file
154
+
155
+ // cmdArgs = customed command args from:
156
+ // - a user's profil
157
+ // - the 'Configure Run Options' panel
158
+ const cmdArgs = this . scriptOptions . cmdArgs ;
159
+
160
+ // Let's overdrive the default args with the customed ones
161
+ let args = ( cmdArgs . length ) ? cmdArgs : extraArgs ;
162
+
163
+ // Do not forget to concat the script args after the command args
164
+ const scriptArgs = this . scriptOptions . scriptArgs ;
165
+ args = args . concat ( scriptArgs ) ;
166
+
153
167
const projectPath = this . getProjectPath || '' ;
154
168
args = ( args . map ( arg => this . fillVarsInArg ( arg , codeContext , projectPath ) ) ) ;
155
169
You can’t perform that action at this time.
0 commit comments