KusionStack / KusionStack/vscode-kusion

[Enhancement] Support quick pick to select target stack when compile/preview/apply/destory

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. right clicking on the active editor and select operations in the editor context menu.
  2. 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:
apply-quick-pick-single

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

apply-quick-pick

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): []Project
    • ListStacks(workspaceRoot: string): []Stack

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.