Skip to content

Commit

Permalink
Merge pull request #445 from che-incubator/filter-devfile-commands
Browse files Browse the repository at this point in the history
fix: Filter out init-ssh-agent from Che Code's Devfile task lists
  • Loading branch information
RomanNikitenko authored Oct 25, 2024
2 parents 9bca7f2 + e8ebf98 commit c4e688f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/extensions/che-commands/src/taskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class DevfileTaskProvider implements vscode.TaskProvider {
const importedByAttribute = (command.attributes as any)?.['controller.devfile.io/imported-by'];
return !command.attributes || importedByAttribute === undefined || importedByAttribute === 'parent';
})
.filter(command => !/^init-ssh-agent-command-\d+$/.test(command.id))
.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 c4e688f

Please sign in to comment.