Skip to content

Commit e0aa211

Browse files
authored
Initial implementation of the CDK Explorer (#826)
Authored by: Shiv Lakshminarayan <[email protected]>
1 parent 01df060 commit e0aa211

34 files changed

+1655
-8
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "CDK projects can now be visualized with the CDK Explorer"
4+
}

package.json

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"onCommand:aws.viewLogs",
4747
"onCommand:aws.quickStart",
4848
"onCommand:aws.help",
49-
"onCommand:aws.github"
49+
"onCommand:aws.github",
50+
"onView:aws.cdk.explorer"
5051
],
5152
"main": "./out/src/extension",
5253
"contributes": {
@@ -79,6 +80,11 @@
7980
"default": 30000,
8081
"markdownDescription": "%AWS.configuration.description.samcli.debug.attach.timeout%"
8182
},
83+
"aws.cdk.explorer.enabled": {
84+
"type": "boolean",
85+
"default": true,
86+
"description": "%AWS.configuration.description.cdk.explorer.enabled%"
87+
},
8288
"aws.logLevel": {
8389
"type": "string",
8490
"default": "info",
@@ -126,6 +132,13 @@
126132
"id": "aws.explorer",
127133
"name": "%AWS.lambda.explorerTitle%"
128134
}
135+
],
136+
"explorer": [
137+
{
138+
"id": "aws.cdk.explorer",
139+
"name": "%AWS.cdk.explorerTitle%",
140+
"when": "config.aws.cdk.explorer.enabled"
141+
}
129142
]
130143
},
131144
"menus": {
@@ -201,6 +214,21 @@
201214
"command": "aws.reportIssue",
202215
"when": "view == aws.explorer",
203216
"group": "z_externalLinks@3"
217+
},
218+
{
219+
"command": "aws.refreshCdkExplorer",
220+
"when": "view == aws.cdk.explorer",
221+
"group": "navigation@5"
222+
},
223+
{
224+
"command": "aws.cdk.help",
225+
"when": "view == aws.cdk.explorer",
226+
"group": "z_externalLinks@2"
227+
},
228+
{
229+
"command": "aws.cdk.provideFeedback",
230+
"when": "view == aws.cdk.explorer",
231+
"group": "z_externalLinks@3"
204232
}
205233
],
206234
"view/item/context": [
@@ -257,6 +285,16 @@
257285
"title": "%AWS.command.reportIssue%",
258286
"category": "AWS"
259287
},
288+
{
289+
"command": "aws.cdk.provideFeedback",
290+
"title": "%AWS.command.cdk.provideFeedback%",
291+
"category": "AWS"
292+
},
293+
{
294+
"command": "aws.cdk.help",
295+
"title": "%AWS.command.cdk.help%",
296+
"category": "AWS"
297+
},
260298
{
261299
"command": "aws.showRegion",
262300
"title": "%AWS.command.showRegion%",
@@ -287,8 +325,8 @@
287325
"title": "%AWS.command.refreshAwsExplorer%",
288326
"category": "AWS",
289327
"icon": {
290-
"dark": "third-party/resources/from-vscode/dark/refresh.svg",
291-
"light": "third-party/resources/from-vscode/light/refresh.svg"
328+
"dark": "third-party/resources/from-vscode-icons/dark/refresh.svg",
329+
"light": "third-party/resources/from-vscode-icons/light/refresh.svg"
292330
}
293331
},
294332
{
@@ -325,6 +363,15 @@
325363
"command": "aws.quickStart",
326364
"title": "%AWS.command.quickStart%",
327365
"category": "AWS"
366+
},
367+
{
368+
"command": "aws.refreshCdkExplorer",
369+
"title": "%AWS.command.refreshCdkExplorer%",
370+
"category": "AWS",
371+
"icon": {
372+
"dark": "third-party/resources/from-vscode-icons/dark/refresh.svg",
373+
"light": "third-party/resources/from-vscode-icons/light/refresh.svg"
374+
}
328375
}
329376
],
330377
"jsonValidation": [

package.nls.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
"AWS.title.createCredentialProfile": "Create a new AWS credential profile",
44
"AWS.title.creatingCredentialProfile": "Saving new credential profile {0}",
55
"AWS.title.selectCredentialProfile": "Select an AWS credential profile",
6+
"AWS.cdk.explorerTitle": "AWS CDK Explorer (Preview)",
7+
"Aws.cdk.explorerNode.noApps": "[No CDK Apps found in Workspaces]",
8+
"Aws.cdk.explorerNode.app.noConstructTree": "[Unable to load construct tree for this App. Run `cdk synth`]",
9+
"Aws.cdk.explorerNode.app.noStacks": "[No stacks in this App]",
610
"AWS.channel.aws.toolkit": "AWS Toolkit",
711
"AWS.channel.aws.toolkit.activation.error": "Error Activating AWS Toolkit",
812
"AWS.codelens.lambda.invoke": "Run Locally",
913
"AWS.codelens.lambda.invoke.debug": "Debug Locally",
1014
"AWS.configuration.title": "AWS Configuration",
1115
"AWS.configuration.profileDescription": "The name of the credential profile to obtain credentials from.",
16+
"AWS.configuration.description.cdk.explorer.enabled": "Enable the AWS CDK Explorer",
1217
"AWS.configuration.description.logLevel": "The AWS Toolkit's log level (changes reflected on restart)",
1318
"AWS.configuration.description.onDefaultRegionMissing": "Action to take when a Profile's default region is hidden in the Explorer. Possible values:\n* `add` - shows region in the explorer\n* `ignore` - does nothing with the region\n* `prompt` - (default) asks the user what they would like to do.",
1419
"AWS.configuration.description.samcli.debug.attach.retry.maximum": "If the Toolkit is unable to attach a debugger, this is the number of times to retry before giving up.",
@@ -34,6 +39,9 @@
3439
"AWS.command.invokeLambda": "Invoke on AWS",
3540
"AWS.command.configureLambda": "Configure",
3641
"AWS.command.refreshAwsExplorer": "Refresh",
42+
"AWS.command.refreshCdkExplorer": "Refresh",
43+
"AWS.command.cdk.provideFeedback": "Provide Feedback",
44+
"AWS.command.cdk.help": "View Documentation",
3745
"AWS.command.samcli.detect": "Detect SAM CLI",
3846
"AWS.command.deleteCloudFormation": "Delete CloudFormation Stack",
3947
"AWS.command.viewLogs": "View AWS Toolkit Logs",

resources/aws-cdk-logo.svg

Lines changed: 11 additions & 0 deletions
Loading

resources/dark/cdk/cdk.svg

Lines changed: 11 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)