|
690 | 690 | }, |
691 | 691 | { |
692 | 692 | "command": "vscode-cmsis-debugger.componentViewer.copyRow", |
693 | | - "when": "webviewId == 'cmsis-debugger.componentViewer' && componentViewerRow != 'root' && componentViewerRowHasValue", |
| 693 | + "when": "webviewId == 'cmsis-debugger.componentViewer' && !componentViewerRowIsRoot && componentViewerRowHasValue", |
694 | 694 | "group": "contextMenuG1@2" |
695 | 695 | }, |
696 | 696 | { |
|
705 | 705 | }, |
706 | 706 | { |
707 | 707 | "command": "vscode-cmsis-debugger.componentViewer.lockComponent", |
708 | | - "when": "webviewId == 'cmsis-debugger.componentViewer' && componentViewerRow == 'root' && componentViewerLockState == 'unlocked'", |
| 708 | + "when": "webviewId == 'cmsis-debugger.componentViewer' && componentViewerRowIsRoot && !componentViewerComponentLocked", |
709 | 709 | "group": "contextMenuG2@2" |
710 | 710 | }, |
711 | 711 | { |
712 | 712 | "command": "vscode-cmsis-debugger.componentViewer.unlockComponent", |
713 | | - "when": "webviewId == 'cmsis-debugger.componentViewer' && componentViewerRow == 'root' && componentViewerLockState == 'locked'", |
| 713 | + "when": "webviewId == 'cmsis-debugger.componentViewer' && componentViewerRowIsRoot && componentViewerComponentLocked", |
714 | 714 | "group": "contextMenuG2@2" |
715 | 715 | }, |
716 | 716 | { |
|
725 | 725 | }, |
726 | 726 | { |
727 | 727 | "command": "vscode-cmsis-debugger.corePeripherals.copyRow", |
728 | | - "when": "webviewId == 'cmsis-debugger.corePeripherals' && componentViewerRow != 'root' && componentViewerRowHasValue", |
| 728 | + "when": "webviewId == 'cmsis-debugger.corePeripherals' && !componentViewerRowIsRoot && componentViewerRowHasValue", |
729 | 729 | "group": "contextMenuG1@2" |
730 | 730 | }, |
731 | 731 | { |
|
740 | 740 | }, |
741 | 741 | { |
742 | 742 | "command": "vscode-cmsis-debugger.corePeripherals.lockComponent", |
743 | | - "when": "webviewId == 'cmsis-debugger.corePeripherals' && componentViewerRow == 'root' && componentViewerLockState == 'unlocked'", |
| 743 | + "when": "webviewId == 'cmsis-debugger.corePeripherals' && componentViewerRowIsRoot && !componentViewerComponentLocked", |
744 | 744 | "group": "contextMenuG2@2" |
745 | 745 | }, |
746 | 746 | { |
747 | 747 | "command": "vscode-cmsis-debugger.corePeripherals.unlockComponent", |
748 | | - "when": "webviewId == 'cmsis-debugger.corePeripherals' && componentViewerRow == 'root' && componentViewerLockState == 'locked'", |
| 748 | + "when": "webviewId == 'cmsis-debugger.corePeripherals' && componentViewerRowIsRoot && componentViewerComponentLocked", |
749 | 749 | "group": "contextMenuG2@2" |
750 | 750 | }, |
751 | 751 | { |
|
0 commit comments