|
240 | 240 | "type": "object",
|
241 | 241 | "markdownDescription": "%AWS.configuration.description.experiments%",
|
242 | 242 | "default": {
|
243 |
| - "jsonResourceModification": false |
| 243 | + "jsonResourceModification": false, |
| 244 | + "ec2RemoteConnect": false |
244 | 245 | },
|
245 | 246 | "properties": {
|
246 | 247 | "jsonResourceModification": {
|
247 | 248 | "type": "boolean",
|
248 | 249 | "default": false
|
| 250 | + }, |
| 251 | + "ec2RemoteConnect": { |
| 252 | + "type": "boolean", |
| 253 | + "default": false |
249 | 254 | }
|
250 | 255 | },
|
251 | 256 | "additionalProperties": false
|
|
1203 | 1208 | },
|
1204 | 1209 | {
|
1205 | 1210 | "command": "aws.ec2.openRemoteConnection",
|
1206 |
| - "when": "aws.isDevMode" |
| 1211 | + "when": "config.aws.experiments.ec2RemoteConnect" |
1207 | 1212 | },
|
1208 | 1213 | {
|
1209 | 1214 | "command": "aws.ec2.openTerminal",
|
1210 |
| - "when": "aws.isDevMode" |
| 1215 | + "when": "config.aws.experiments.ec2RemoteConnect" |
1211 | 1216 | },
|
1212 | 1217 | {
|
1213 | 1218 | "command": "aws.ec2.linkToLaunch",
|
1214 |
| - "when": "aws.isDevMode" |
| 1219 | + "when": "config.aws.experiments.ec2RemoteConnect" |
1215 | 1220 | },
|
1216 | 1221 | {
|
1217 | 1222 | "command": "aws.ec2.startInstance",
|
1218 |
| - "when": "aws.isDevMode" |
| 1223 | + "when": "config.aws.experiments.ec2RemoteConnect" |
1219 | 1224 | },
|
1220 | 1225 | {
|
1221 | 1226 | "command": "aws.ec2.stopInstance",
|
1222 |
| - "when": "aws.isDevMode" |
| 1227 | + "when": "config.aws.experiments.ec2RemoteConnect" |
1223 | 1228 | },
|
1224 | 1229 | {
|
1225 | 1230 | "command": "aws.ec2.rebootInstance",
|
1226 |
| - "when": "aws.isDevMode" |
| 1231 | + "when": "config.aws.experiments.ec2RemoteConnect" |
1227 | 1232 | },
|
1228 | 1233 | {
|
1229 | 1234 | "command": "aws.dev.openMenu",
|
|
1448 | 1453 | {
|
1449 | 1454 | "command": "aws.ec2.openTerminal",
|
1450 | 1455 | "group": "0@1",
|
1451 |
| - "when": "viewItem =~ /^(awsEc2(Parent|Running)Node)$/" |
| 1456 | + "when": "viewItem =~ /^(awsEc2(Parent|Running)Node)$/ && config.aws.experiments.ec2RemoteConnect" |
1452 | 1457 | },
|
1453 | 1458 | {
|
1454 | 1459 | "command": "aws.ec2.openTerminal",
|
1455 | 1460 | "group": "inline@1",
|
1456 |
| - "when": "viewItem =~ /^(awsEc2(Parent|Running)Node)$/" |
| 1461 | + "when": "viewItem =~ /^(awsEc2(Parent|Running)Node)$/ && config.aws.experiments.ec2RemoteConnect" |
1457 | 1462 | },
|
1458 | 1463 | {
|
1459 | 1464 | "command": "aws.ec2.linkToLaunch",
|
1460 | 1465 | "group": "0@1",
|
1461 |
| - "when": "viewItem =~ /^(awsEc2ParentNode)$/" |
| 1466 | + "when": "viewItem =~ /^(awsEc2ParentNode)$/ && config.aws.experiments.ec2RemoteConnect" |
1462 | 1467 | },
|
1463 | 1468 | {
|
1464 | 1469 | "command": "aws.ec2.linkToLaunch",
|
1465 | 1470 | "group": "inline@1",
|
1466 |
| - "when": "viewItem =~ /^(awsEc2ParentNode)$/" |
| 1471 | + "when": "viewItem =~ /^(awsEc2ParentNode)$/ && config.aws.experiments.ec2RemoteConnect" |
1467 | 1472 | },
|
1468 | 1473 | {
|
1469 | 1474 | "command": "aws.ec2.openRemoteConnection",
|
1470 | 1475 | "group": "0@1",
|
1471 |
| - "when": "viewItem =~ /^(awsEc2(Parent|Running)Node)$/" |
| 1476 | + "when": "viewItem =~ /^(awsEc2(Parent|Running)Node)$/ && config.aws.experiments.ec2RemoteConnect" |
1472 | 1477 | },
|
1473 | 1478 | {
|
1474 | 1479 | "command": "aws.ec2.openRemoteConnection",
|
1475 | 1480 | "group": "inline@1",
|
1476 |
| - "when": "viewItem =~ /^(awsEc2(Parent|Running)Node)$/" |
| 1481 | + "when": "viewItem =~ /^(awsEc2(Parent|Running)Node)$/ && config.aws.experiments.ec2RemoteConnect" |
1477 | 1482 | },
|
1478 | 1483 | {
|
1479 | 1484 | "command": "aws.ec2.startInstance",
|
1480 | 1485 | "group": "0@1",
|
1481 |
| - "when": "viewItem == awsEc2StoppedNode" |
| 1486 | + "when": "viewItem == awsEc2StoppedNode && config.aws.experiments.ec2RemoteConnect" |
1482 | 1487 | },
|
1483 | 1488 | {
|
1484 | 1489 | "command": "aws.ec2.startInstance",
|
1485 | 1490 | "group": "inline@1",
|
1486 |
| - "when": "viewItem == awsEc2StoppedNode" |
| 1491 | + "when": "viewItem == awsEc2StoppedNode && config.aws.experiments.ec2RemoteConnect" |
1487 | 1492 | },
|
1488 | 1493 | {
|
1489 | 1494 | "command": "aws.ec2.stopInstance",
|
1490 | 1495 | "group": "0@1",
|
1491 |
| - "when": "viewItem == awsEc2RunningNode" |
| 1496 | + "when": "viewItem == awsEc2RunningNode && config.aws.experiments.ec2RemoteConnect" |
1492 | 1497 | },
|
1493 | 1498 | {
|
1494 | 1499 | "command": "aws.ec2.stopInstance",
|
1495 | 1500 | "group": "inline@1",
|
1496 |
| - "when": "viewItem == awsEc2RunningNode" |
| 1501 | + "when": "viewItem == awsEc2RunningNode && config.aws.experiments.ec2RemoteConnect" |
1497 | 1502 | },
|
1498 | 1503 | {
|
1499 | 1504 | "command": "aws.ec2.rebootInstance",
|
1500 | 1505 | "group": "0@1",
|
1501 |
| - "when": "viewItem == awsEc2RunningNode" |
| 1506 | + "when": "viewItem == awsEc2RunningNode && config.aws.experiments.ec2RemoteConnect" |
1502 | 1507 | },
|
1503 | 1508 | {
|
1504 | 1509 | "command": "aws.ec2.rebootInstance",
|
1505 | 1510 | "group": "inline@1",
|
1506 |
| - "when": "viewItem == awsEc2RunningNode" |
| 1511 | + "when": "viewItem == awsEc2RunningNode && config.aws.experiments.ec2RemoteConnect" |
| 1512 | + }, |
| 1513 | + { |
| 1514 | + "command": "aws.ec2.copyInstanceId", |
| 1515 | + "when": "view == aws.explorer && viewItem =~ /^(awsEc2(Running|Stopped|Pending)Node)$/ && config.aws.experiments.ec2RemoteConnect", |
| 1516 | + "group": "2@0" |
1507 | 1517 | },
|
1508 | 1518 | {
|
1509 | 1519 | "command": "aws.ecr.createRepository",
|
|
1605 | 1615 | "when": "!config.aws.samcli.legacyDeploy && view == aws.explorer && viewItem =~ /^(awsLambdaNode|awsRegionNode|awsCloudFormationRootNode)$/",
|
1606 | 1616 | "group": "1@2"
|
1607 | 1617 | },
|
1608 |
| - { |
1609 |
| - "command": "aws.ec2.copyInstanceId", |
1610 |
| - "when": "view == aws.explorer && viewItem =~ /^(awsEc2(Running|Stopped|Pending)Node)$/", |
1611 |
| - "group": "2@0" |
1612 |
| - }, |
1613 | 1618 | {
|
1614 | 1619 | "command": "aws.ecr.copyTagUri",
|
1615 | 1620 | "when": "view == aws.explorer && viewItem == awsEcrTagNode",
|
|
0 commit comments