Commit 7dc3745
committed
fix: address review feedback for unsaved changes warning
- Simplify Visual tab guard by removing redundant activeTab check
(confirmDiscardChanges already returns true when no changes exist)
- Document intentional asymmetry: JSON tab button has no guard because
visual tab saves changes immediately via RPC
Signed-off-by: majiayu000 <1835304752@qq.com>1 parent e812e9b commit 7dc3745
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
0 commit comments