Commit 30c10b9
feat(ui): Persist Plan First and Thinking Mode toggle states
Add persistence for toggle button states across VS Code restarts.
Changes:
- extension.ts: Add _planModeEnabled and _thinkingModeEnabled instance variables
- extension.ts: Load/save toggle states from/to globalState
- extension.ts: Include toggle states in _sendCurrentSettings()
- extension.ts: Handle toggle state updates in _updateSettings()
- script.ts: Send updateSettings message on toggle change
- script.ts: Restore toggle UI states when receiving settingsData
Previously, Plan First and Thinking Mode toggles reset to off when
reopening the chat panel or restarting VS Code. Now these preferences
are persisted using VS Code's globalState API.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 505e9b1 commit 30c10b9
2 files changed
+69
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
2598 | 2604 | | |
2599 | 2605 | | |
2600 | 2606 | | |
2601 | | - | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
2602 | 2610 | | |
2603 | 2611 | | |
2604 | 2612 | | |
| |||
2634 | 2642 | | |
2635 | 2643 | | |
2636 | 2644 | | |
2637 | | - | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
2638 | 2654 | | |
2639 | 2655 | | |
2640 | 2656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
864 | 869 | | |
865 | 870 | | |
866 | 871 | | |
867 | 872 | | |
868 | | - | |
| 873 | + | |
869 | 874 | | |
870 | 875 | | |
871 | 876 | | |
872 | | - | |
| 877 | + | |
873 | 878 | | |
874 | 879 | | |
875 | 880 | | |
| |||
883 | 888 | | |
884 | 889 | | |
885 | 890 | | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
886 | 896 | | |
887 | 897 | | |
888 | 898 | | |
| |||
3440 | 3450 | | |
3441 | 3451 | | |
3442 | 3452 | | |
3443 | | - | |
| 3453 | + | |
3444 | 3454 | | |
3445 | 3455 | | |
3446 | 3456 | | |
| |||
3450 | 3460 | | |
3451 | 3461 | | |
3452 | 3462 | | |
3453 | | - | |
| 3463 | + | |
3454 | 3464 | | |
3455 | 3465 | | |
3456 | 3466 | | |
3457 | 3467 | | |
3458 | 3468 | | |
3459 | | - | |
| 3469 | + | |
3460 | 3470 | | |
3461 | 3471 | | |
3462 | | - | |
| 3472 | + | |
3463 | 3473 | | |
3464 | 3474 | | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
3465 | 3510 | | |
3466 | 3511 | | |
3467 | 3512 | | |
| |||
0 commit comments