Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amyXia1994 opened this issue Mar 10, 2023 · 0 comments

Comments

@amyXia1994
Copy link
Contributor

amyXia1994 commented Mar 10, 2023

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

kcl-lang/kcl#446

  • requires Kusion provide API to analyze the konfig workspace and recognize all the stack/projects:
    • ListProject(workspaceRoot: string): []Project
    • ListStacks(workspaceRoot: string): []Stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant