-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(explorer): move CDK to 'Developer Tools' view (#2639)
## Problem The CDK explorer is basically a copy-paste of the AWS explorer with a few tweaks. This makes it hard to move it around because it has a 'custom' tree provider combined with usage of a coupled base class. AWSTreeNodeBase is not great for two reasons: * Directly inherits from vscode.TreeItem * Developers are encouraged to pack business logic directly in the UI element (!) The inheritance itself isn't bad, it's just when we also embed logic for user gestures. It makes it really easy to just pipe the node everywhere which we don't want. ## Solution Separate out the resource ('model') from the tree item in its own interface. I had to add a corresponding data provider as well. Some ideas are still being worked out in terms of ergonomics though the implementation itself is sound. This PR is the first step towards separating out the model from the tree. CDK was refactored to test some of the ideas.
- Loading branch information
1 parent
7d2332a
commit 5dbf5e6
Showing
50 changed files
with
997 additions
and
1,820 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.changes/next-release/Feature-f665aa22-7dba-4690-8603-c98a7988d423.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"type": "Feature", | ||
"description": "You can now find CDK functionality under the 'Developer Tools' view. This view will contain more ways to work with local project resources in future releases." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ CHANGELOG.md | |
src/shared/telemetry/service-2.json | ||
.changes | ||
src/testFixtures/** | ||
resources/markdown/samReadme.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.