|
829 | 829 | "title": "Volumes", |
830 | 830 | "category": "OpenShift" |
831 | 831 | }, |
| 832 | + { |
| 833 | + "command": "openshift.Serverless.addGit", |
| 834 | + "title": "Git", |
| 835 | + "category": "OpenShift" |
| 836 | + }, |
832 | 837 | { |
833 | 838 | "command": "openshift.Serverless.removeEnv", |
834 | 839 | "title": "Environment Variables", |
|
843 | 848 | "command": "openshift.Serverless.removeVolume", |
844 | 849 | "title": "Volumes", |
845 | 850 | "category": "OpenShift" |
| 851 | + }, |
| 852 | + { |
| 853 | + "command": "openshift.Serverless.removeGit", |
| 854 | + "title": "Git", |
| 855 | + "category": "OpenShift" |
846 | 856 | } |
847 | 857 | ], |
848 | 858 | "keybindings": [ |
|
1188 | 1198 | "command": "openshift.Serverless.addVolume", |
1189 | 1199 | "when": "false" |
1190 | 1200 | }, |
| 1201 | + { |
| 1202 | + "command": "openshift.Serverless.addGit", |
| 1203 | + "when": "false" |
| 1204 | + }, |
1191 | 1205 | { |
1192 | 1206 | "command": "openshift.Serverless.removeEnv", |
1193 | 1207 | "when": "false" |
|
1199 | 1213 | { |
1200 | 1214 | "command": "openshift.Serverless.removeVolume", |
1201 | 1215 | "when": "false" |
| 1216 | + }, |
| 1217 | + { |
| 1218 | + "command": "openshift.Serverless.removeGit", |
| 1219 | + "when": "false" |
1202 | 1220 | } |
1203 | 1221 | ], |
1204 | 1222 | "view/title": [ |
|
1270 | 1288 | ], |
1271 | 1289 | "serverlessfunction/addConfig": [ |
1272 | 1290 | { |
1273 | | - "command": "openshift.Serverless.addLabel", |
| 1291 | + "command": "openshift.Serverless.addEnv", |
| 1292 | + "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
| 1293 | + "group": "c1@0" |
| 1294 | + }, |
| 1295 | + { |
| 1296 | + "command": "openshift.Serverless.addGit", |
1274 | 1297 | "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
1275 | 1298 | "group": "c1@1" |
1276 | 1299 | }, |
1277 | 1300 | { |
1278 | | - "command": "openshift.Serverless.addVolume", |
| 1301 | + "command": "openshift.Serverless.addLabel", |
1279 | 1302 | "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
1280 | 1303 | "group": "c1@2" |
1281 | 1304 | }, |
1282 | 1305 | { |
1283 | | - "command": "openshift.Serverless.addEnv", |
1284 | | - "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
1285 | | - "group": "c1@3" |
| 1306 | + "command": "openshift.Serverless.addVolume", |
| 1307 | + "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
| 1308 | + "group": "c1@3" |
1286 | 1309 | } |
1287 | 1310 | ], |
1288 | 1311 | "serverlessfunction/removeConfig": [ |
1289 | 1312 | { |
1290 | | - "command": "openshift.Serverless.removeLabel", |
| 1313 | + "command": "openshift.Serverless.removeEnv", |
| 1314 | + "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
| 1315 | + "group": "c1@0" |
| 1316 | + }, |
| 1317 | + { |
| 1318 | + "command": "openshift.Serverless.removeGit", |
1291 | 1319 | "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
1292 | 1320 | "group": "c1@1" |
1293 | 1321 | }, |
1294 | 1322 | { |
1295 | | - "command": "openshift.Serverless.removeVolume", |
| 1323 | + "command": "openshift.Serverless.removeLabel", |
1296 | 1324 | "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
1297 | 1325 | "group": "c1@2" |
1298 | 1326 | }, |
1299 | 1327 | { |
1300 | | - "command": "openshift.Serverless.removeEnv", |
1301 | | - "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
1302 | | - "group": "c1@3" |
| 1328 | + "command": "openshift.Serverless.removeVolume", |
| 1329 | + "when": "view == openshiftServerlessFunctionsView && viewItem =~ /^(localFunctionsWithBuild|localDeployFunctions)$/", |
| 1330 | + "group": "c1@3" |
1303 | 1331 | } |
1304 | 1332 | ], |
1305 | 1333 | "view/item/context": [ |
|
0 commit comments