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 @@ -1092,7 +1092,7 @@ export class Editor extends toolboxeditor.ToolboxEditor {
10921092 < ErrorList
10931093 errors = { this . errors }
10941094 onSizeChange = { this . onErrorListResize }
1095- collapsedByUser = { this . parent . state . errorListCollapsedByUser }
1095+ collapsedByUser = { this . parent . state . errorListCollapsed }
10961096 onUserCollapse = { this . setErrorListCollapsePreference }
10971097 getErrorHelp = { this . getErrorHelp }
10981098 showLoginDialog = { this . parent . showLoginDialog }
@@ -1109,7 +1109,7 @@ export class Editor extends toolboxeditor.ToolboxEditor {
11091109
11101110 protected setErrorListCollapsePreference = ( collapsed : boolean ) => {
11111111 this . parent . setState ( {
1112- errorListCollapsedByUser : collapsed
1112+ errorListCollapsed : collapsed
11131113 } ) ;
11141114 }
11151115
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