@@ -1105,15 +1105,36 @@ export async function activate(context: vscode.ExtensionContext) {
1105
1105
)
1106
1106
) ;
1107
1107
1108
+ context . subscriptions . push (
1109
+ vscode . commands . registerCommand ( "zephyr-ide.show-container" , async ( ) => {
1110
+ // Reveal any view inside our container; this triggers container visibility
1111
+ await vscode . commands . executeCommand ( "workbench.view.extension.zephyr-ide-main" ) ;
1112
+ } )
1113
+ ) ;
1114
+
1108
1115
context . subscriptions . push (
1109
1116
vscode . commands . registerCommand ( "zephyr-ide.update-web-view" , async ( ) => {
1110
1117
activeProjectView . updateWebView ( wsConfig ) ;
1111
1118
projectTreeView . updateWebView ( wsConfig ) ;
1112
1119
projectConfigView . updateWebView ( wsConfig ) ;
1120
+ // Ensure the setup panel stays in sync as well
1121
+ extensionSetupView . updateWebView ( wsConfig , globalConfig ) ;
1122
+ if ( SetupPanel . currentPanel ) {
1123
+ SetupPanel . currentPanel . updateContent ( wsConfig , globalConfig ) ;
1124
+ }
1113
1125
vscode . commands . executeCommand ( "zephyr-ide.update-status" ) ;
1114
1126
} )
1115
1127
) ;
1116
1128
1129
+ // Kick an initial refresh shortly after activation so views render even if no command ran yet
1130
+ setTimeout ( ( ) => {
1131
+ try {
1132
+ vscode . commands . executeCommand ( "zephyr-ide.update-web-view" ) ;
1133
+ } catch ( e ) {
1134
+ console . error ( "Zephyr IDE: initial webview refresh failed" , e ) ;
1135
+ }
1136
+ } , 100 ) ;
1137
+
1117
1138
context . subscriptions . push (
1118
1139
vscode . commands . registerCommand ( "zephyr-ide.start-menu-config" , async ( ) => {
1119
1140
buildMenuConfig ( wsConfig , MenuConfig . MenuConfig ) ;
0 commit comments