Skip to content

Conversation

meet-vasita
Copy link
Contributor

Updates pip’s PowerShell completion and its test to the modern Register-ArgumentCompleter style, replacing the old TabExpansion script.

Closes #12440.

@meet-vasita
Copy link
Contributor Author

Hi @notatallshaw, could you take a look at this PR?

@notatallshaw
Copy link
Member

@meet-vasita thanks for raising this PR, unfortunately I have next to zero experience with both powershell and completions, so I am unlikely to be able to review this, hopefully another maintainer will pick this up when they have time, otherwise I will try and eventually add it on to my review list.

This PR did make me think we should move this completion scripts out into their own files, so we can at least run some basic syntax checks, and IDEs will better be able support development work on them. But that should be in a separate PR to this one.

@meet-vasita
Copy link
Contributor Author

Thanks @notatallshaw for the update! I understand, and I’ll wait for another maintainer to review.

I agree that moving the completion scripts into separate files sounds like a good improvement for the future.

@meet-vasita
Copy link
Contributor Author

Thanks @notatallshaw, I’ll add the venv to my global git ignore.

@pfmoore
Copy link
Member

pfmoore commented Sep 12, 2025

I use powershell, but I've never used the completion scripts from pip. So I don't have any direct experience with this (and I'm not familiar with the powershell completion APIs). I'll try to find some time to take a look, but it could well be a few weeks before I have any spare time to do so.

@meet-vasita
Copy link
Contributor Author

Thanks @pfmoore, no worries I appreciate you taking a look whenever you get the time.

@pfmoore
Copy link
Member

pfmoore commented Sep 23, 2025

I created #13593 because this PR doesn't work for me as it registers completions for the wrong command, but that's a more general issue.

I don't have time right now to try to work around the more general bug in order to test this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix/improve argument completion for PowerShell 7.4+
3 participants