|
63 | 63 | }
|
64 | 64 | ],
|
65 | 65 | "view/item/context": [
|
| 66 | + { |
| 67 | + "command": "cycode.enableFilterByCriticalSeverity", |
| 68 | + "when": "viewItem == FilterNode && !cycode:filter.severity.isCriticalEnabled", |
| 69 | + "group": "inline@1" |
| 70 | + }, |
| 71 | + { |
| 72 | + "command": "cycode.disableFilterByCriticalSeverity", |
| 73 | + "when": "viewItem == FilterNode && cycode:filter.severity.isCriticalEnabled", |
| 74 | + "group": "inline@1" |
| 75 | + }, |
| 76 | + { |
| 77 | + "command": "cycode.enableFilterByHighSeverity", |
| 78 | + "when": "viewItem == FilterNode && !cycode:filter.severity.isHighEnabled", |
| 79 | + "group": "inline@2" |
| 80 | + }, |
| 81 | + { |
| 82 | + "command": "cycode.disableFilterByHighSeverity", |
| 83 | + "when": "viewItem == FilterNode && cycode:filter.severity.isHighEnabled", |
| 84 | + "group": "inline@2" |
| 85 | + }, |
| 86 | + { |
| 87 | + "command": "cycode.enableFilterByMediumSeverity", |
| 88 | + "when": "viewItem == FilterNode && !cycode:filter.severity.isMediumEnabled", |
| 89 | + "group": "inline@3" |
| 90 | + }, |
| 91 | + { |
| 92 | + "command": "cycode.disableFilterByMediumSeverity", |
| 93 | + "when": "viewItem == FilterNode && cycode:filter.severity.isMediumEnabled", |
| 94 | + "group": "inline@3" |
| 95 | + }, |
| 96 | + { |
| 97 | + "command": "cycode.enableFilterByLowSeverity", |
| 98 | + "when": "viewItem == FilterNode && !cycode:filter.severity.isLowEnabled", |
| 99 | + "group": "inline@4" |
| 100 | + }, |
| 101 | + { |
| 102 | + "command": "cycode.disableFilterByLowSeverity", |
| 103 | + "when": "viewItem == FilterNode && cycode:filter.severity.isLowEnabled", |
| 104 | + "group": "inline@4" |
| 105 | + }, |
| 106 | + { |
| 107 | + "command": "cycode.enableFilterByInfoSeverity", |
| 108 | + "when": "viewItem == FilterNode && !cycode:filter.severity.isInfoEnabled", |
| 109 | + "group": "inline@5" |
| 110 | + }, |
| 111 | + { |
| 112 | + "command": "cycode.disableFilterByInfoSeverity", |
| 113 | + "when": "viewItem == FilterNode && cycode:filter.severity.isInfoEnabled", |
| 114 | + "group": "inline@5" |
| 115 | + }, |
66 | 116 | {
|
67 | 117 | "command": "cycode.secretScanForProject",
|
68 |
| - "when": "viewItem == secretScanTypeNode", |
| 118 | + "when": "viewItem == secretScanTypeNode && cycode:modules.isSecretScanningEnabled", |
69 | 119 | "group": "inline"
|
70 | 120 | },
|
71 | 121 | {
|
72 | 122 | "command": "cycode.scaScan",
|
73 |
| - "when": "viewItem == scaScanTypeNode", |
| 123 | + "when": "viewItem == scaScanTypeNode && cycode:modules.isScaScanningEnabled", |
74 | 124 | "group": "inline"
|
75 | 125 | },
|
76 | 126 | {
|
77 | 127 | "command": "cycode.iacScanForProject",
|
78 |
| - "when": "viewItem == iacScanTypeNode", |
| 128 | + "when": "viewItem == iacScanTypeNode && cycode:modules.isIacScanningEnabled", |
79 | 129 | "group": "inline"
|
80 | 130 | },
|
81 | 131 | {
|
82 | 132 | "command": "cycode.sastScanForProject",
|
83 |
| - "when": "viewItem == sastScanTypeNode", |
| 133 | + "when": "viewItem == sastScanTypeNode && cycode:modules.isSastScanningEnabled", |
84 | 134 | "group": "inline"
|
85 | 135 | },
|
86 | 136 | {
|
87 | 137 | "command": "cycode.secretScanForProject",
|
88 |
| - "when": "view == cycode.view.tree && viewItem == secretScanTypeNode" |
| 138 | + "when": "view == cycode.view.tree && viewItem == secretScanTypeNode && cycode:modules.isSecretScanningEnabled" |
89 | 139 | },
|
90 | 140 | {
|
91 | 141 | "command": "cycode.scaScan",
|
92 |
| - "when": "view == cycode.view.tree && viewItem == scaScanTypeNode" |
| 142 | + "when": "view == cycode.view.tree && viewItem == scaScanTypeNode && cycode:modules.isScaScanningEnabled" |
93 | 143 | },
|
94 | 144 | {
|
95 | 145 | "command": "cycode.iacScanForProject",
|
96 |
| - "when": "view == cycode.view.tree && viewItem == iacScanTypeNode" |
| 146 | + "when": "view == cycode.view.tree && viewItem == iacScanTypeNode && cycode:modules.isIacScanningEnabled" |
97 | 147 | },
|
98 | 148 | {
|
99 | 149 | "command": "cycode.sastScanForProject",
|
100 |
| - "when": "view == cycode.view.tree && viewItem == sastScanTypeNode" |
| 150 | + "when": "view == cycode.view.tree && viewItem == sastScanTypeNode && cycode:modules.isSastScanningEnabled" |
| 151 | + } |
| 152 | + ], |
| 153 | + "commandPalette": [ |
| 154 | + { |
| 155 | + "command": "cycode.secretScanForProject", |
| 156 | + "when": "cycode:modules.isSecretScanningEnabled" |
| 157 | + }, |
| 158 | + { |
| 159 | + "command": "cycode.iacScanForProject", |
| 160 | + "when": "cycode:modules.isIacScanningEnabled" |
| 161 | + }, |
| 162 | + { |
| 163 | + "command": "cycode.sastScanForProject", |
| 164 | + "when": "cycode:modules.isSastScanningEnabled" |
| 165 | + }, |
| 166 | + { |
| 167 | + "command": "cycode.scaScan", |
| 168 | + "when": "cycode:modules.isScaScanningEnabled" |
| 169 | + }, |
| 170 | + { |
| 171 | + "command": "cycode.enableFilterByCriticalSeverity", |
| 172 | + "when": "false" |
| 173 | + }, |
| 174 | + { |
| 175 | + "command": "cycode.enableFilterByHighSeverity", |
| 176 | + "when": "false" |
| 177 | + }, |
| 178 | + { |
| 179 | + "command": "cycode.enableFilterByMediumSeverity", |
| 180 | + "when": "false" |
| 181 | + }, |
| 182 | + { |
| 183 | + "command": "cycode.enableFilterByLowSeverity", |
| 184 | + "when": "false" |
| 185 | + }, |
| 186 | + { |
| 187 | + "command": "cycode.enableFilterByInfoSeverity", |
| 188 | + "when": "false" |
| 189 | + }, |
| 190 | + { |
| 191 | + "command": "cycode.disableFilterByCriticalSeverity", |
| 192 | + "when": "false" |
| 193 | + }, |
| 194 | + { |
| 195 | + "command": "cycode.disableFilterByHighSeverity", |
| 196 | + "when": "false" |
| 197 | + }, |
| 198 | + { |
| 199 | + "command": "cycode.disableFilterByMediumSeverity", |
| 200 | + "when": "false" |
| 201 | + }, |
| 202 | + { |
| 203 | + "command": "cycode.disableFilterByLowSeverity", |
| 204 | + "when": "false" |
| 205 | + }, |
| 206 | + { |
| 207 | + "command": "cycode.disableFilterByInfoSeverity", |
| 208 | + "when": "false" |
101 | 209 | }
|
102 | 210 | ]
|
103 | 211 | },
|
|
198 | 306 | {
|
199 | 307 | "command": "cycode.auth",
|
200 | 308 | "title": "Authenticate with service"
|
| 309 | + }, |
| 310 | + { |
| 311 | + "command": "cycode.enableFilterByCriticalSeverity", |
| 312 | + "category": "Cycode", |
| 313 | + "title": "Enable filter by Critical severity", |
| 314 | + "icon": { |
| 315 | + "light": "resources/severity/Critical.png", |
| 316 | + "dark": "resources/severity/Critical.png" |
| 317 | + } |
| 318 | + }, |
| 319 | + { |
| 320 | + "command": "cycode.enableFilterByHighSeverity", |
| 321 | + "category": "Cycode", |
| 322 | + "title": "Enable filter by High severity", |
| 323 | + "icon": { |
| 324 | + "light": "resources/severity/High.png", |
| 325 | + "dark": "resources/severity/High.png" |
| 326 | + } |
| 327 | + }, |
| 328 | + { |
| 329 | + "command": "cycode.enableFilterByMediumSeverity", |
| 330 | + "category": "Cycode", |
| 331 | + "title": "Enable filter by Medium severity", |
| 332 | + "icon": { |
| 333 | + "light": "resources/severity/Medium.png", |
| 334 | + "dark": "resources/severity/Medium.png" |
| 335 | + } |
| 336 | + }, |
| 337 | + { |
| 338 | + "command": "cycode.enableFilterByLowSeverity", |
| 339 | + "category": "Cycode", |
| 340 | + "title": "Enable filter by Low severity", |
| 341 | + "icon": { |
| 342 | + "light": "resources/severity/Low.png", |
| 343 | + "dark": "resources/severity/Low.png" |
| 344 | + } |
| 345 | + }, |
| 346 | + { |
| 347 | + "command": "cycode.enableFilterByInfoSeverity", |
| 348 | + "category": "Cycode", |
| 349 | + "title": "Enable filter by Info severity", |
| 350 | + "icon": { |
| 351 | + "light": "resources/severity/Info.png", |
| 352 | + "dark": "resources/severity/Info.png" |
| 353 | + } |
| 354 | + }, |
| 355 | + { |
| 356 | + "command": "cycode.disableFilterByCriticalSeverity", |
| 357 | + "category": "Cycode", |
| 358 | + "title": "Disable filter by Critical severity", |
| 359 | + "icon": { |
| 360 | + "light": "resources/severity/outline/Critical.png", |
| 361 | + "dark": "resources/severity/outline/Critical.png" |
| 362 | + } |
| 363 | + }, |
| 364 | + { |
| 365 | + "command": "cycode.disableFilterByHighSeverity", |
| 366 | + "category": "Cycode", |
| 367 | + "title": "Disable filter by High severity", |
| 368 | + "icon": { |
| 369 | + "light": "resources/severity/outline/High.png", |
| 370 | + "dark": "resources/severity/outline/High.png" |
| 371 | + } |
| 372 | + }, |
| 373 | + { |
| 374 | + "command": "cycode.disableFilterByMediumSeverity", |
| 375 | + "category": "Cycode", |
| 376 | + "title": "Disable filter by Medium severity", |
| 377 | + "icon": { |
| 378 | + "light": "resources/severity/outline/Medium.png", |
| 379 | + "dark": "resources/severity/outline/Medium.png" |
| 380 | + } |
| 381 | + }, |
| 382 | + { |
| 383 | + "command": "cycode.disableFilterByLowSeverity", |
| 384 | + "category": "Cycode", |
| 385 | + "title": "Disable filter by Low severity", |
| 386 | + "icon": { |
| 387 | + "light": "resources/severity/outline/Low.png", |
| 388 | + "dark": "resources/severity/outline/Low.png" |
| 389 | + } |
| 390 | + }, |
| 391 | + { |
| 392 | + "command": "cycode.disableFilterByInfoSeverity", |
| 393 | + "category": "Cycode", |
| 394 | + "title": "Disable filter by Info severity", |
| 395 | + "icon": { |
| 396 | + "light": "resources/severity/outline/Info.png", |
| 397 | + "dark": "resources/severity/outline/Info.png" |
| 398 | + } |
201 | 399 | }
|
202 | 400 | ],
|
203 | 401 | "viewsContainers": {
|
|
246 | 444 | },
|
247 | 445 | "icons": {
|
248 | 446 | "cycode-logo": {
|
249 |
| - "description": "Cycode icon", |
| 447 | + "description": "Cycode Logo", |
250 | 448 | "default": {
|
251 | 449 | "fontPath": "./resources/cycode.woff",
|
252 | 450 | "fontCharacter": "\\E800"
|
|
0 commit comments