Commit 795c3c0
committed
feat: add 'Add and Run' button for allowed commands (#5290)
- Added new 'Add and Run' button in ChatView that appears when hovering over code blocks containing allowed commands
- Button extracts commands from code blocks and adds them to allowed commands list
- Automatically switches to Settings view after adding commands
- Added comprehensive test coverage for the new functionality
- Updated all locale files with new translation keys
- Added utility function to extract command patterns from code blocks
This implementation allows users to quickly add commands from AI responses to their allowed commands list with a single click.1 parent 70726bc commit 795c3c0
File tree
30 files changed
+1761
-346
lines changed- src
- core
- assistant-message
- webview
- __tests__
- webview-ui/src
- components
- chat
- __tests__
- settings
- __tests__
- i18n/locales
- ca
- de
- en
- es
- fr
- hi
- id
- it
- ja
- ko
- nl
- pl
- pt-BR
- ru
- tr
- vi
- zh-CN
- zh-TW
- utils
- __tests__
30 files changed
+1761
-346
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
274 | 309 | | |
275 | 310 | | |
276 | 311 | | |
| |||
0 commit comments