Skip to content

Commit

Permalink
feat(shell-integration): pnpm quick fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Jul 15, 2024
1 parent 4e9daea commit 55c2c82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/renderer/utils/shell-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,11 @@ export class ShellIntegrationAddon implements ITerminalAddon {
})
return actions
}
// PNPM
const pnpmMatches = output.match(/did you mean to (\w+)\?/)
if (pnpmMatches && /\bpnpm\b/.test(command)) {
return [{ type: 'recommendation' as const, command: `pnpm ${pnpmMatches[1]}` }]
}
}

_getCommandOutput(command: IntegratedShellCommand) {
Expand Down

0 comments on commit 55c2c82

Please sign in to comment.