Skip to content

Commit

Permalink
Simplify detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed Aug 16, 2024
1 parent ecf39e6 commit 12b6332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function isDaggerCli(text: string): boolean {
.flatMap((line) => line.split(' '))
.filter((line) => !line.startsWith('--'))
.join(' ')
return simplified.startsWith('dagger call') || simplified.startsWith('$ dagger call')
return simplified.includes('dagger call')
}

export type ExecResourceType = 'None' | 'URI' | 'Dagger'
Expand Down

0 comments on commit 12b6332

Please sign in to comment.