aws / aws/aws-toolkit-vscode

Add CDK explorer VS code setting to allow selecting different path

Open
#1,104 2 comments 6 reactions 0 assignees View on GitHub
cdk feature-request
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

**Description**

Currently the https://github.com/aws/aws-toolkit-vscode/pull/809 feature works when the cdk folder structure is found in the root of the workspace (or at most 1 level deep)

**Requested solution**

Add a vscode setting for the plugin to allow CDK base path changing per workspace. This allows working on more complex project folders/workspaces. While it may not show every single cdk in a workspace it will allow to use the tool via a setting.

**Alternatives**

Currently the only way is to reopen the folder and stop using a workspace that is a parent folder

**Examples**

Given the folder structure:

test_plugin_level_1
L test_cdk
L hello-cdk

- VSCode workspace opens folder (hello-cdk) containing CDK app.py: works ok

![Screen Shot 2020-05-21 at 5 56 38 pm](https://user-images.githubusercontent.com/2918150/82536911-8c4ffb00-9b8c-11ea-8d23-7b329a000c29.png)

- VSCode workspace opens `hello-cdk` parent folder (test_cdk): still works

![Screen Shot 2020-05-21 at 5 56 17 pm](https://user-images.githubusercontent.com/2918150/82537017-b7d2e580-9b8c-11ea-9e7c-baa1adbef454.png)

- VSCode workspace opens `test_cdk` parent folder (test_plugin_level_1): stops working

![Screen Shot 2020-05-21 at 5 55 47 pm](https://user-images.githubusercontent.com/2918150/82537110-da64fe80-9b8c-11ea-896d-4ecfc99fc512.png)

Contributor guide

Open the contributing guide

Research direction

Start by reading the CDK explorer implementation associated with feature PR #809 and trace how it discovers CDK folders relative to the VS Code workspace. Add a per-workspace setting for the CDK base path, then verify that the example nested workspace structure can still be discovered through that setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.