File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -820,7 +820,7 @@ declare namespace pxt.editor {
820820 simSerialActive ?: boolean ;
821821 deviceSerialActive ?: boolean ;
822822 errorListState ?: ErrorListState ;
823- errorListCollapsedByUser ?: boolean ;
823+ errorListCollapsed ?: boolean ;
824824 screenshoting ?: boolean ;
825825 extensionsVisible ?: boolean ;
826826 isMultiplayerGame ?: boolean ; // Arcade: Does the current project contain multiplayer blocks?
Original file line number Diff line number Diff line change @@ -205,7 +205,8 @@ export class ProjectView
205205 isMultiplayerGame : false ,
206206 activeTourConfig : undefined ,
207207 mute : pxt . editor . MuteState . Unmuted ,
208- feedback : { showing : false , kind : "generic" } // state that tracks if the feedback modal is showing and what kind
208+ feedback : { showing : false , kind : "generic" } , // state that tracks if the feedback modal is showing and what kind
209+ errorListCollapsed : true // error pane is collapsed by default
209210 } ;
210211 if ( ! this . settings . editorFontSize ) this . settings . editorFontSize = / m o b i l e / i. test ( navigator . userAgent ) ? 15 : 19 ;
211212 if ( ! this . settings . fileHistory ) this . settings . fileHistory = [ ] ;
Original file line number Diff line number Diff line change @@ -1105,7 +1105,7 @@ export class Editor extends toolboxeditor.ToolboxEditor {
11051105 < ErrorList
11061106 errors = { this . errors }
11071107 onSizeChange = { this . onErrorListResize }
1108- collapsedByUser = { this . parent . state . errorListCollapsedByUser }
1108+ collapsedByUser = { this . parent . state . errorListCollapsed }
11091109 onUserCollapse = { this . setErrorListCollapsePreference }
11101110 getErrorHelp = { this . getErrorHelp }
11111111 showLoginDialog = { this . parent . showLoginDialog }
@@ -1122,7 +1122,7 @@ export class Editor extends toolboxeditor.ToolboxEditor {
11221122
11231123 protected setErrorListCollapsePreference = ( collapsed : boolean ) => {
11241124 this . parent . setState ( {
1125- errorListCollapsedByUser : collapsed
1125+ errorListCollapsed : collapsed
11261126 } ) ;
11271127 }
11281128
Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ export class Editor extends toolboxeditor.ToolboxEditor {
664664 { showErrorList && (
665665 < ErrorList
666666 onSizeChange = { this . setErrorListState }
667- collapsedByUser = { this . parent . state . errorListCollapsedByUser }
667+ collapsedByUser = { this . parent . state . errorListCollapsed }
668668 onUserCollapse = { this . setErrorListCollapsePreference }
669669 errors = { this . errors }
670670 startDebugger = { this . startDebugger }
@@ -963,7 +963,7 @@ export class Editor extends toolboxeditor.ToolboxEditor {
963963
964964 protected setErrorListCollapsePreference = ( collapsed : boolean ) => {
965965 this . parent . setState ( {
966- errorListCollapsedByUser : collapsed
966+ errorListCollapsed : collapsed
967967 } ) ;
968968 }
969969
You can’t perform that action at this time.
0 commit comments