Skip to content

Commit

Permalink
Rework credential selection and enable multi-region in the explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejroberts committed Aug 23, 2018
1 parent 5ae6885 commit 3f4d0a5
Show file tree
Hide file tree
Showing 31 changed files with 2,184 additions and 583 deletions.
865 changes: 650 additions & 215 deletions package-lock.json

Large diffs are not rendered by default.

80 changes: 38 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
"version": "0.0.1",
"publisher": "amazonwebservices",
"engines": {
"vscode": "^1.23.0"
"vscode": "^1.26.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:aws.selectProfile",
"onCommand:aws.selectRegion",
"onCommand:aws.login",
"onCommand:aws.logout",
"onCommand:aws.addExplorerRegion",
"onCommand:aws.removeExplorerRegion",
"onView:lambda",
"onCommand:aws.newLambda",
"onCommand:aws.invokeLambda",
Expand All @@ -24,25 +26,25 @@
"contributes": {
"configuration": {
"type": "object",
"title": "AWS Configuration",
"title": "%AWS.configuration.title%",
"properties": {
"aws.region": {
"type": "string",
"default": "",
"description": "The default region for your AWS resources"
"description": "%AWS.configuration.regionDescription%"
},
"aws.profile": {
"type": "string",
"default": "",
"description": "The name of the credential profile to obtain credentials from"
"description": "%AWS.configuration.profileDescription%"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "aws-explorer",
"title": "AWS",
"title": "%AWS.title%",
"icon": "media/aws-logo.svg"
}
]
Expand All @@ -51,36 +53,26 @@
"aws-explorer": [
{
"id": "lambda",
"name": "Lambda"
"name": "%AWS.lambda.explorerTitle%"
}
]
},
"menus": {
"view/title": [
{
"command": "aws.selectProfile",
"when": "view == lambda",
"group": "navigation@1"
},
{
"command": "aws.selectRegion",
"when": "view == lambda",
"group": "navigation@2"
},
{
"command": "aws.newLambda",
"when": "view == lambda",
"group": "navigation@3"
"group": "navigation@2"
},
{
"command": "aws.deployLambda",
"when": "view == lambda",
"group": "navigation@4"
"group": "navigation@3"
},
{
"command": "aws.invokeLambda",
"when": "view == lambda",
"group": "navigation@5"
"group": "navigation@4"
}
],
"view/item/context": [
Expand Down Expand Up @@ -108,26 +100,28 @@
},
"commands": [
{
"command": "aws.selectProfile",
"title": "Select a credential profile",
"category": "AWS",
"icon": {
"light": "resources/light/select_profile.svg",
"dark": "resources/dark/select_profile.svg"
}
"command": "aws.login",
"title": "%AWS.command.login%",
"category": "AWS"
},
{
"command": "aws.selectRegion",
"title": "Select a region",
"category": "AWS",
"icon": {
"light": "resources/light/select_region.svg",
"dark": "resources/dark/select_region.svg"
}
"command": "aws.logout",
"title": "%AWS.command.logout%",
"category": "AWS"
},
{
"command": "aws.addExplorerRegion",
"title": "%AWS.command.addExplorerRegion%",
"category": "AWS"
},
{
"command": "aws.removeExplorerRegion",
"title": "%AWS.command.removeExplorerRegion%",
"category": "AWS"
},
{
"command": "aws.newLambda",
"title": "%AWS.newLambda%",
"title": "%AWS.command.newLambda%",
"category": "AWS",
"icon": {
"light": "resources/light/new_lambda.svg",
Expand All @@ -136,7 +130,7 @@
},
{
"command": "aws.deployLambda",
"title": "%AWS.deployLambda%",
"title": "%AWS.command.deployLambda%",
"category": "AWS",
"icon": {
"light": "resources/light/deploy_lambda.svg",
Expand All @@ -145,7 +139,7 @@
},
{
"command": "aws.invokeLambda",
"title": "%AWS.invokeLambda%",
"title": "%AWS.command.invokeLambda%",
"category": "AWS",
"icon": {
"light": "resources/light/invoke_lambda.svg",
Expand All @@ -154,12 +148,12 @@
},
{
"command": "aws.getLambdaConfig",
"title": "%AWS.getLambdaConfig%",
"title": "%AWS.command.getLambdaConfig%",
"category": "AWS"
},
{
"command": "aws.getLambdaPolicy",
"title": "%AWS.getLambdaPolicy%",
"title": "%AWS.command.getLambdaPolicy%",
"category": "AWS"
}
]
Expand All @@ -181,13 +175,15 @@
"@types/xml2js": "^0.4.3",
"tslint": "^5.8.0",
"typescript": "^2.6.1",
"vscode": "^1.1.6"
"vscode": "^1.1.21",
"vscode-nls-dev": "^3.2.1"
},
"dependencies": {
"aws-sdk": "^2.227.1",
"fs-extra": "^6.0.1",
"lodash": "^4.17.10",
"npm": "^6.1.0",
"vue": "^2.5.16"
"vue": "^2.5.16",
"vscode-nls": "^3.2.4"
}
}
26 changes: 21 additions & 5 deletions package.nls.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{
"AWS.newLambda": "New Lambda Function or Serverless App",
"AWS.deployLambda": "Deploy Lambda Function",
"AWS.invokeLambda": "Invoke Lambda Function",
"AWS.getLambdaConfig": "Get Lambda Function Configuration",
"AWS.getLambdaPolicy": "Get Lambda Function Policy"
"AWS.title": "AWS",
"AWS.configuration.regionDescription": "The regions to query for resources to display in the Explorer.",
"AWS.configuration.profileDescription": "The name of the credential profile to obtain credentials from.",
"AWS.configuration.title": "AWS Configuration",
"AWS.command.login": "Sign in to AWS",
"AWS.command.logout": "Sign out",
"AWS.command.addExplorerRegion": "Add a region to the Explorer",
"AWS.command.removeExplorerRegion": "Remove a region from the Explorer",
"AWS.command.newLambda": "New Lambda Function or Serverless App",
"AWS.command.deployLambda": "Deploy Lambda Function",
"AWS.command.invokeLambda": "Invoke Lambda Function",
"AWS.command.getLambdaConfig": "Get Lambda Function Configuration",
"AWS.command.getLambdaPolicy": "Get Lambda Function Policy",
"AWS.explorerNode.addRegion": "Add a region to view functions...",
"AWS.explorerNode.addRegion.tooltip": "Click to add a region to view functions...",
"AWS.explorerNode.lambda.noFunctions": "..no functions in this region...",
"AWS.explorerNode.signIn": "Sign in to AWS...",
"AWS.explorerNode.signIn.tooltip": "Connect to AWS using a credential profile",
"AWS.lambda.explorerTitle": "Lambda",
"AWS.message.enterProfileName": "Enter the name of the credential profile to use",
"AWS.message.selectRegion": "Select an AWS region"
}
Loading

0 comments on commit 3f4d0a5

Please sign in to comment.