|
91 | 91 | // Auto-show terminal output during codespace startup |
92 | 92 | "terminal.integrated.showExitAlert": false, |
93 | 93 | "terminal.integrated.focusAfterRun": "terminal", |
| 94 | + "terminal.integrated.defaultProfile.linux": "bash", |
| 95 | + "terminal.integrated.tabs.enabled": true, |
94 | 96 | "workbench.panel.defaultLocation": "bottom", |
95 | 97 | "workbench.panel.opensMaximized": "preserve", |
96 | 98 | "workbench.startupEditor": "none", |
97 | | - "workbench.panel.defaultPanelHeight": 300, |
| 99 | + "workbench.panel.defaultPanelHeight": 400, |
| 100 | + "workbench.view.alwaysShowHeaderActions": true, |
| 101 | + // Auto-open terminal panel on startup |
| 102 | + "workbench.action.terminal.focus": true, |
| 103 | + "workbench.action.togglePanel": true, |
| 104 | + "terminal.integrated.defaultLocation": "view", |
98 | 105 | // Auto-allow clipboard operations in Codespaces |
99 | 106 | "security.workspace.trust.enabled": false, |
100 | 107 | "editor.experimental.pasteActions.enabled": true, |
|
105 | 112 | "containerEnv": { |
106 | 113 | "PYTHONPATH": "/workspaces/Apim-Samples/shared/python:/workspaces/Apim-Samples" |
107 | 114 | }, |
108 | | - // Container lifecycle commands for optimal Codespaces prebuild performance: |
109 | | - // 1. onCreateCommand: Runs during prebuild - creates venv |
110 | | - // 2. updateContentCommand: Runs when content changes - installs/updates packages |
111 | | - // 3. postStartCommand: Runs every startup - verifies and configures |
| 115 | + // Container lifecycle commands for optimal Codespaces prebuild performance: https://containers.dev/implementors/features/#lifecycle-hooks |
| 116 | + // 1. onCreateCommand: Runs only once during initial prebuild - creates venv |
| 117 | + // 2. updateContentCommand: Runs during any prebuild when content changes - installs/updates packages |
| 118 | + // 3. postStartCommand: Runs on every startup - verifies and configures |
112 | 119 | "onCreateCommand": [ |
113 | 120 | "bash", "-c", |
114 | 121 | "echo '🚀 Creating Python virtual environment in workspace...' && /usr/local/bin/python3.12 -m venv /workspaces/Apim-Samples/.venv --copies && source /workspaces/Apim-Samples/.venv/bin/activate && pip install --upgrade pip setuptools wheel && echo '✅ Virtual environment created'" |
|
119 | 126 | ], |
120 | 127 | "postStartCommand": [ |
121 | 128 | "bash", "-c", |
122 | | - "echo '🔧 Running post-start setup - terminal will remain visible...' && bash .devcontainer/post-start-setup.sh && echo '✅ Post-start setup completed! Check the terminal output above.'" |
| 129 | + "echo '� APIM Samples Codespace Starting - Keep this terminal open to see progress!' && echo '============================================================' && bash .devcontainer/post-start-setup.sh && echo '============================================================' && echo '✅ Setup completed! This terminal will remain open for your reference.' && echo '💡 Tip: You can minimize this panel if needed, but the setup logs above show your environment status.' && sleep 2" |
123 | 130 | ], |
124 | 131 | "forwardPorts": [ |
125 | 132 | 8000, |
|
0 commit comments