File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -267,6 +267,7 @@ class Editor extends React.Component {
267
267
. split ( '\n' ) [ 1 ]
268
268
. split ( 'at ' ) [ 1 ] ;
269
269
} else {
270
+ this . props . expandConsole ( ) ;
270
271
return ;
271
272
}
272
273
const [ source , line ] = sourceAndLoc . split ( ':' ) ;
@@ -279,6 +280,7 @@ class Editor extends React.Component {
279
280
( f ) => f . name === fileName && f . filePath === filePath
280
281
) ;
281
282
this . props . setSelectedFile ( fileWithError . id ) ;
283
+ this . props . expandConsole ( ) ;
282
284
const lineNumber = parseInt ( line , 10 ) - 1 ;
283
285
this . _cm . addLineClass (
284
286
lineNumber ,
@@ -494,7 +496,8 @@ Editor.propTypes = {
494
496
runtimeErrorWarningVisible : PropTypes . bool . isRequired ,
495
497
provideController : PropTypes . func . isRequired ,
496
498
t : PropTypes . func . isRequired ,
497
- setSelectedFile : PropTypes . func . isRequired
499
+ setSelectedFile : PropTypes . func . isRequired ,
500
+ expandConsole : PropTypes . func . isRequired
498
501
} ;
499
502
500
503
function mapStateToProps ( state ) {
You can’t perform that action at this time.
0 commit comments