This repository was archived by the owner on May 15, 2026. It is now read-only.
Commit c7d1230
committed
feat: add lock API config toggle to Settings providers tab (#12237)
Adds a "Use the same API configuration for all modes" checkbox to the
Providers section in Settings, making the existing lockApiConfigAcrossModes
feature discoverable without needing to find the small lock icon inside
the API Configuration popover.
- Adds VSCodeCheckbox to SettingsView providers tab bound to cachedState
- Sends lockApiConfigAcrossModes message on save (same handler as popover)
- Adds i18n strings for the label and description
- Adds test coverage for rendering, toggling, and save behavior1 parent ad25634 commit c7d1230
3 files changed
Lines changed: 382 additions & 0 deletions
File tree
- webview-ui/src
- components/settings
- __tests__
- i18n/locales/en
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
| |||
430 | 433 | | |
431 | 434 | | |
432 | 435 | | |
| 436 | + | |
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
| |||
766 | 770 | | |
767 | 771 | | |
768 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
769 | 788 | | |
770 | 789 | | |
771 | 790 | | |
| |||
0 commit comments