|
74 | 74 | ] |
75 | 75 | }, |
76 | 76 | "commands": [ |
| 77 | + { |
| 78 | + "command": "vscode-cmsis-debugger.resetDynamicViewState", |
| 79 | + "title": "Reset All Dynamic View States", |
| 80 | + "category": "CMSIS Debugger" |
| 81 | + }, |
77 | 82 | { |
78 | 83 | "command": "vscode-cmsis-debugger.openDisassemblyView", |
79 | 84 | "title": "Open Disassembly View", |
|
163 | 168 | "title": "Show in Memory Inspector", |
164 | 169 | "category": "Live Watch" |
165 | 170 | }, |
| 171 | + { |
| 172 | + "command": "vscode-cmsis-debugger.liveWatch.enablePeriodicUpdate", |
| 173 | + "title": "Enable Periodic Update", |
| 174 | + "icon": "$(sync)", |
| 175 | + "category": "Live Watch" |
| 176 | + }, |
| 177 | + { |
| 178 | + "command": "vscode-cmsis-debugger.liveWatch.disablePeriodicUpdate", |
| 179 | + "title": "Disable Periodic Update", |
| 180 | + "icon": "$(sync-ignored)", |
| 181 | + "category": "Live Watch" |
| 182 | + }, |
166 | 183 | { |
167 | 184 | "command": "vscode-cmsis-debugger.liveWatch.setValue", |
168 | 185 | "title": "Set Value", |
|
183 | 200 | { |
184 | 201 | "command": "vscode-cmsis-debugger.componentViewer.enablePeriodicUpdate", |
185 | 202 | "title": "Enable Periodic Update", |
| 203 | + "icon": "$(sync)", |
186 | 204 | "category": "Component Viewer" |
187 | 205 | }, |
188 | 206 | { |
189 | 207 | "command": "vscode-cmsis-debugger.componentViewer.disablePeriodicUpdate", |
190 | 208 | "title": "Disable Periodic Update", |
| 209 | + "icon": "$(sync-ignored)", |
191 | 210 | "category": "Component Viewer" |
192 | 211 | }, |
193 | 212 | { |
|
223 | 242 | { |
224 | 243 | "command": "vscode-cmsis-debugger.corePeripherals.enablePeriodicUpdate", |
225 | 244 | "title": "Enable Periodic Update", |
| 245 | + "icon": "$(sync)", |
226 | 246 | "category": "Core Peripherals" |
227 | 247 | }, |
228 | 248 | { |
229 | 249 | "command": "vscode-cmsis-debugger.corePeripherals.disablePeriodicUpdate", |
230 | 250 | "title": "Disable Periodic Update", |
| 251 | + "icon": "$(sync-ignored)", |
231 | 252 | "category": "Core Peripherals" |
232 | 253 | }, |
233 | 254 | { |
|
279 | 300 | } |
280 | 301 | ], |
281 | 302 | "commandPalette": [ |
| 303 | + { |
| 304 | + "command": "vscode-cmsis-debugger.resetDynamicViewState", |
| 305 | + "when": "true" |
| 306 | + }, |
282 | 307 | { |
283 | 308 | "command": "vscode-cmsis-debugger.openDisassemblyView", |
284 | 309 | "when": "false" |
|
331 | 356 | "command": "vscode-cmsis-debugger.liveWatch.showInMemoryInspector", |
332 | 357 | "when": "false" |
333 | 358 | }, |
| 359 | + { |
| 360 | + "command": "vscode-cmsis-debugger.liveWatch.enablePeriodicUpdate", |
| 361 | + "when": "!liveWatch.periodicUpdateEnabled" |
| 362 | + }, |
| 363 | + { |
| 364 | + "command": "vscode-cmsis-debugger.liveWatch.disablePeriodicUpdate", |
| 365 | + "when": "liveWatch.periodicUpdateEnabled" |
| 366 | + }, |
334 | 367 | { |
335 | 368 | "command": "vscode-cmsis-debugger.liveWatch.setValue", |
336 | 369 | "when": "false" |
|
345 | 378 | }, |
346 | 379 | { |
347 | 380 | "command": "vscode-cmsis-debugger.componentViewer.enablePeriodicUpdate", |
348 | | - "when": "true" |
| 381 | + "when": "!componentViewer.periodicUpdateEnabled" |
349 | 382 | }, |
350 | 383 | { |
351 | 384 | "command": "vscode-cmsis-debugger.componentViewer.disablePeriodicUpdate", |
352 | | - "when": "true" |
| 385 | + "when": "componentViewer.periodicUpdateEnabled" |
353 | 386 | }, |
354 | 387 | { |
355 | 388 | "command": "vscode-cmsis-debugger.componentViewer.expandAll", |
|
373 | 406 | }, |
374 | 407 | { |
375 | 408 | "command": "vscode-cmsis-debugger.corePeripherals.enablePeriodicUpdate", |
376 | | - "when": "true" |
| 409 | + "when": "!corePeripherals.periodicUpdateEnabled" |
377 | 410 | }, |
378 | 411 | { |
379 | 412 | "command": "vscode-cmsis-debugger.corePeripherals.disablePeriodicUpdate", |
380 | | - "when": "true" |
| 413 | + "when": "corePeripherals.periodicUpdateEnabled" |
381 | 414 | }, |
382 | 415 | { |
383 | 416 | "command": "vscode-cmsis-debugger.corePeripherals.expandAll", |
|
413 | 446 | { |
414 | 447 | "command": "vscode-cmsis-debugger.liveWatch.deleteAll", |
415 | 448 | "when": "view == cmsis-debugger.liveWatch", |
416 | | - "group": "navigation@3" |
| 449 | + "group": "navigation@4" |
417 | 450 | }, |
418 | 451 | { |
419 | 452 | "command": "vscode-cmsis-debugger.liveWatch.refresh", |
420 | 453 | "when": "view == cmsis-debugger.liveWatch", |
421 | 454 | "group": "navigation@2" |
422 | 455 | }, |
| 456 | + { |
| 457 | + "command": "vscode-cmsis-debugger.liveWatch.disablePeriodicUpdate", |
| 458 | + "when": "view == cmsis-debugger.liveWatch && liveWatch.periodicUpdateEnabled", |
| 459 | + "group": "navigation@3" |
| 460 | + }, |
| 461 | + { |
| 462 | + "command": "vscode-cmsis-debugger.liveWatch.enablePeriodicUpdate", |
| 463 | + "when": "view == cmsis-debugger.liveWatch && !liveWatch.periodicUpdateEnabled", |
| 464 | + "group": "navigation@3" |
| 465 | + }, |
423 | 466 | { |
424 | 467 | "command": "vscode-cmsis-debugger.componentViewer.expandAll", |
425 | 468 | "when": "view == cmsis-debugger.componentViewer", |
426 | | - "group": "navigation@3" |
| 469 | + "group": "navigation@4" |
427 | 470 | }, |
428 | 471 | { |
429 | 472 | "command": "vscode-cmsis-debugger.corePeripherals.expandAll", |
430 | 473 | "when": "view == cmsis-debugger.corePeripherals", |
431 | | - "group": "navigation@3" |
| 474 | + "group": "navigation@4" |
432 | 475 | }, |
433 | 476 | { |
434 | 477 | "command": "vscode-cmsis-debugger.componentViewer.filterTree", |
|
449 | 492 | "command": "vscode-cmsis-debugger.corePeripherals.clearFilter", |
450 | 493 | "when": "view == cmsis-debugger.corePeripherals && corePeripherals.filterActive", |
451 | 494 | "group": "navigation@2" |
| 495 | + }, |
| 496 | + { |
| 497 | + "command": "vscode-cmsis-debugger.componentViewer.disablePeriodicUpdate", |
| 498 | + "when": "view == cmsis-debugger.componentViewer && componentViewer.periodicUpdateEnabled", |
| 499 | + "group": "navigation@3" |
| 500 | + }, |
| 501 | + { |
| 502 | + "command": "vscode-cmsis-debugger.componentViewer.enablePeriodicUpdate", |
| 503 | + "when": "view == cmsis-debugger.componentViewer && !componentViewer.periodicUpdateEnabled", |
| 504 | + "group": "navigation@3" |
| 505 | + }, |
| 506 | + { |
| 507 | + "command": "vscode-cmsis-debugger.corePeripherals.disablePeriodicUpdate", |
| 508 | + "when": "view == cmsis-debugger.corePeripherals && corePeripherals.periodicUpdateEnabled", |
| 509 | + "group": "navigation@3" |
| 510 | + }, |
| 511 | + { |
| 512 | + "command": "vscode-cmsis-debugger.corePeripherals.enablePeriodicUpdate", |
| 513 | + "when": "view == cmsis-debugger.corePeripherals && !corePeripherals.periodicUpdateEnabled", |
| 514 | + "group": "navigation@3" |
452 | 515 | } |
453 | 516 | ], |
454 | 517 | "view/item/context": [ |
|
570 | 633 | } |
571 | 634 | } |
572 | 635 | } |
573 | | - ] |
| 636 | + ], |
| 637 | + "configuration": { |
| 638 | + "title": "CMSIS Debugger", |
| 639 | + "properties": { |
| 640 | + "vscode-cmsis-debugger.viewState": { |
| 641 | + "type": "object", |
| 642 | + "markdownDescription": "Persisted dynamic view state per debug configuration.", |
| 643 | + "additionalProperties": { |
| 644 | + "type": "object", |
| 645 | + "additionalProperties": false, |
| 646 | + "properties": { |
| 647 | + "componentViewer": { |
| 648 | + "type": "object", |
| 649 | + "markdownDescription": "Persisted dynamic view state for the Component Viewer.", |
| 650 | + "additionalProperties": false, |
| 651 | + "properties": { |
| 652 | + "periodicUpdateEnabled": { "type": "boolean" }, |
| 653 | + "filterPattern": { "type": "string" } |
| 654 | + } |
| 655 | + }, |
| 656 | + "corePeripherals": { |
| 657 | + "type": "object", |
| 658 | + "markdownDescription": "Persisted dynamic view state for the Core Peripherals view.", |
| 659 | + "additionalProperties": false, |
| 660 | + "properties": { |
| 661 | + "periodicUpdateEnabled": { "type": "boolean" }, |
| 662 | + "filterPattern": { "type": "string" } |
| 663 | + } |
| 664 | + }, |
| 665 | + "cpuStatesEnabled": { |
| 666 | + "type": "boolean", |
| 667 | + "markdownDescription": "Persisted CPU time enable/disable state." |
| 668 | + }, |
| 669 | + "liveWatchPeriodicUpdateEnabled": { |
| 670 | + "type": "boolean", |
| 671 | + "markdownDescription": "Persisted Live Watch periodic update enable/disable state." |
| 672 | + } |
| 673 | + } |
| 674 | + } |
| 675 | + } |
| 676 | + } |
| 677 | + } |
574 | 678 | }, |
575 | 679 | "scripts": { |
576 | 680 | "prepare": "npm run build", |
|
0 commit comments