Skip to content

Commit

Permalink
Fix: Do not run parse all recipes task if it is already running
Browse files Browse the repository at this point in the history
When a bitbake file was saved while the parse all recipes task was
already running, this resulted in a warning message being displayed.
  • Loading branch information
deribaucourt committed Nov 23, 2023
1 parent baed521 commit 68e03ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/ui/BitbakeCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ async function parseAllrecipes (bitbakeWorkspace: BitbakeWorkspace, taskProvider
'Parse all recipes',
'bitbake'
)
const runningTasks = vscode.tasks.taskExecutions
if (runningTasks.some((execution) => execution.task.name === parseAllRecipesTask.name)) {
logger.debug('Parse all recipes task is already running')
return
}
await runBitbakeTask(parseAllRecipesTask, taskProvider)
}

Expand Down

0 comments on commit 68e03ea

Please sign in to comment.