Skip to content

Commit

Permalink
fix: Filter out che commands imported by plugins/contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
azatsarynnyy committed Mar 28, 2023
1 parent e91fe13 commit d430776
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 @@ -37,7 +37,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'] !== 'editor')
.filter(command => !command.attributes || (command.attributes as any)['controller.devfile.io/imported-by'] === undefined)
.map(command => this.createCheTask(command.exec?.label || command.id, command.exec?.commandLine!, command.exec?.workingDir || '${PROJECT_SOURCE}', command.exec?.component!));
return cheTasks;
}
Expand Down

0 comments on commit d430776

Please sign in to comment.