Skip to content

Commit

Permalink
fix: filter _complete command
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed May 24, 2024
1 parent 44e448d commit af888e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/provider/task-provider-artisan.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { execFile } from 'child_process'
import { dirname } from 'path'
import { promisify } from 'util'
import { CancellationToken, ProviderResult, ShellExecution, Task, TaskDefinition, TaskProvider, TaskScope, Uri, window, workspace, } from 'vscode'
import { CancellationToken, ProviderResult, ShellExecution, Task, TaskDefinition, TaskProvider, TaskScope, window, workspace } from 'vscode'

export const TASK_TYPE_ARTISAN = 'artisan'
export const TASK_GLOB_ARTISAN = 'artisan'
Expand Down Expand Up @@ -67,6 +67,7 @@ export default class TaskProviderArtisan implements TaskProvider<ArtisanTask> {
hidden: found?.hidden,
}
})
.filter(info => info.name !== '_complete')
.map(info => {
const task = new ArtisanTask(
new ArtisanTaskDefinition(),
Expand All @@ -82,7 +83,8 @@ export default class TaskProviderArtisan implements TaskProvider<ArtisanTask> {
})

tasks.push(...newTasks)
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
console.error(error)
window.showErrorMessage(error.message)
break
Expand Down

0 comments on commit af888e9

Please sign in to comment.