Commit 1c7792d
authored
fix(smus): Add status validation for space operations (aws#8160)
## Description
Added status checks for SageMaker space operations to prevent invalid
actions.
Picture: When opening remote connection:
<img width="507" height="302" alt="Screenshot 2025-10-08 at 4 20 19 PM"
src="https://github.com/user-attachments/assets/905cb51e-daf0-4db5-91ca-fbbc53de28d5"
/>
## fix done
1. The stopSpace function now validates space status before attempting
to stop, showing appropriate warning messages for spaces already in
Stopped/Stopping states or currently Starting.
2. Also added status refresh before open remote connect
## Testing Done
code debug
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.1 parent b654eb3 commit 1c7792d
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
136 | 146 | | |
137 | 147 | | |
138 | 148 | | |
| |||
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
182 | | - | |
| 192 | + | |
183 | 193 | | |
184 | 194 | | |
185 | 195 | | |
| |||
0 commit comments