KusionStack / KusionStack/vscode-kusion
[Enhancement] Support quick pick to select target stack when compile/preview/apply/destory
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Enhancement
The extension now supports trigger compile/preview/apply/destroy/.. operation by two ways:
- right clicking on the active editor and select operations in the editor context menu.
- open the command palette and type "Kusion: ${OperationName}"
When the active document does not belongs to a stack, a "not in a stack" error message will pop up.
In order to support quickly applying/previewing/... one or more stacks' configuration, when the operation is triggered by the command palette, a quick pick stack list should be provided for users to filter and select.
The probable interaction would be like this:

or if we allow to batch operate multiple stacks in the future:

requirement
https://github.com/KusionStack/KCLVM/issues/446
- requires Kusion provide API to analyze the konfig workspace and recognize all the stack/projects:
ListProject(workspaceRoot: string): []ProjectListStacks(workspaceRoot: string): []Stack
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the command-palette handlers for compile, preview, apply, and destroy, then check the KCLVM requirement for ListProject and ListStacks. The work is done when a command-palette operation can obtain workspace stacks and present a quick pick for filtering and selecting a target stack.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devops, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100