From 41b4cc051c95bc685685acfa95ee60c17143398d Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Tue, 28 Mar 2023 12:53:37 +0300 Subject: [PATCH] fix: Filter out che commands imported by plugins/contributions --- code/extensions/che-commands/src/taskProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/extensions/che-commands/src/taskProvider.ts b/code/extensions/che-commands/src/taskProvider.ts index a9381c1c20b..24467a2ea70 100644 --- a/code/extensions/che-commands/src/taskProvider.ts +++ b/code/extensions/che-commands/src/taskProvider.ts @@ -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; }