|
65 | 65 | "category": "Azure Container Apps", |
66 | 66 | "icon": "$(add)" |
67 | 67 | }, |
| 68 | + { |
| 69 | + "command": "containerApps.deleteManagedEnvironment", |
| 70 | + "title": "%containerApps.deleteManagedEnvironment%", |
| 71 | + "category": "Azure Container Apps" |
| 72 | + }, |
| 73 | + { |
| 74 | + "command": "containerApps.editContainerApp", |
| 75 | + "title": "%containerApps.editContainerApp%", |
| 76 | + "category": "Azure Container Apps" |
| 77 | + }, |
68 | 78 | { |
69 | 79 | "command": "containerApps.deployImage", |
70 | 80 | "title": "%containerApps.deployImage%", |
|
76 | 86 | "title": "%containerApps.deployImageApi%", |
77 | 87 | "category": "Azure Container Apps" |
78 | 88 | }, |
79 | | - { |
80 | | - "command": "containerApps.deleteManagedEnvironment", |
81 | | - "title": "%containerApps.deleteManagedEnvironment%", |
82 | | - "category": "Azure Container Apps" |
83 | | - }, |
84 | 89 | { |
85 | 90 | "command": "containerApps.deleteContainerApp", |
86 | 91 | "title": "%containerApps.deleteContainerApp%", |
|
106 | 111 | "title": "%containerApps.editTargetPort%", |
107 | 112 | "category": "Azure Container Apps" |
108 | 113 | }, |
| 114 | + { |
| 115 | + "command": "containerApps.discardRevisionDraft", |
| 116 | + "title": "%containerApps.discardRevisionDraft%", |
| 117 | + "category": "Azure Container Apps", |
| 118 | + "icon": "$(discard)" |
| 119 | + }, |
109 | 120 | { |
110 | 121 | "command": "containerApps.chooseRevisionMode", |
111 | 122 | "title": "%containerApps.chooseRevisionMode%", |
|
215 | 226 | "group": "2@2" |
216 | 227 | }, |
217 | 228 | { |
218 | | - "command": "containerApps.deployImage", |
219 | | - "when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /containerAppItem/i", |
220 | | - "group": "3@1" |
| 229 | + "command": "containerApps.discardRevisionDraft", |
| 230 | + "when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /containerAppItem(.*)revisionMode:single(.*)unsavedChanges:true/i", |
| 231 | + "group": "inline@2" |
| 232 | + }, |
| 233 | + { |
| 234 | + "command": "containerApps.discardRevisionDraft", |
| 235 | + "when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /containerAppItem(.*)revisionMode:single(.*)unsavedChanges:true/i", |
| 236 | + "group": "3@2" |
| 237 | + }, |
| 238 | + { |
| 239 | + "command": "containerApps.editContainerApp", |
| 240 | + "when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /containerAppItem(.*)revisionMode:single/i", |
| 241 | + "group": "4@1" |
221 | 242 | }, |
222 | 243 | { |
223 | 244 | "command": "containerApps.deleteContainerApp", |
224 | 245 | "when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /containerAppItem/i", |
225 | | - "group": "3@2" |
| 246 | + "group": "5@1" |
| 247 | + }, |
| 248 | + { |
| 249 | + "command": "containerApps.deployImage", |
| 250 | + "when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /containerAppItem/i", |
| 251 | + "group": "6@1" |
226 | 252 | }, |
227 | 253 | { |
228 | 254 | "command": "containerApps.startStreamingLogs", |
229 | 255 | "when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /containerAppItem/i", |
230 | | - "group": "4@1" |
| 256 | + "group": "7@1" |
231 | 257 | }, |
232 | 258 | { |
233 | 259 | "command": "containerApps.stopStreamingLogs", |
234 | 260 | "when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /containerAppItem/i", |
235 | | - "group": "4@2" |
| 261 | + "group": "7@2" |
236 | 262 | }, |
237 | 263 | { |
238 | 264 | "command": "containerApps.chooseRevisionMode", |
|
0 commit comments