Skip to content

Commit

Permalink
fix: Include the commands imported from a parent Devfile as to VS Cod…
Browse files Browse the repository at this point in the history
…e Tasks (#197)

* fix: Include the commands imported from a parent Devfile as VS Code Tasks

---------

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
Co-authored-by: Mario Loriedo <mario.loriedo@gmail.com>
  • Loading branch information
azatsarynnyy and l0rd authored Jul 19, 2023
1 parent 25ed5fa commit bce4ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/extensions/che-commands/src/taskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class DevfileTaskProvider implements vscode.TaskProvider {

const cheTasks: vscode.Task[] = devfileCommands!
.filter(command => command.exec?.commandLine)
.filter(command => !command.attributes || (command.attributes as any)['controller.devfile.io/imported-by'] === undefined)
.filter(command => !command.attributes || (command.attributes as any)['controller.devfile.io/imported-by'] === (undefined || 'parent'))
.map(command => this.createCheTask(command.exec?.label || command.id, command.exec?.commandLine!, command.exec?.workingDir || '${PROJECT_SOURCE}', command.exec?.component!, command.exec?.env));
return cheTasks;
}
Expand Down

0 comments on commit bce4ae6

Please sign in to comment.