Skip to content

Commands scoped to a project #165

Closed
Closed
@benoitf

Description

@benoitf

Is your feature request related to a problem? Please describe.
When working on multiple projects, we have some commands that are tied to a specific project.

Let say I have a devfile with two projects: one for the backend with java and another for the frontend with javascript.
I might have two containers, one with java/maven and another with nodejs/yarn
Then I can have two commands:

  • build-backend
  • build-frontend

I can launch them and it will for example either launch maven in the maven container and launch yarn in the nodejs container.

But now inside IDE, we have scoped commands, meaning that if I'm working inside the project backend the task that I see are tied to this project. So for example my debug view contains java debug view, and I want to see only 'build backend' command there. Because 'build frontend' when I'm inside the files of the backend project has no interest there.

Describe the solution you'd like
Add ability to scope a command to a group/project in addition to a component.

Describe alternatives you've considered
N/A

Additional context
UX is not good when you see all commands of the devfile for a specific project as IDE are managing a scope.
We have for example dedicated tasks.json / launch.json files per project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiEnhancement or issue related to the api/devfile specification

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions