-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable tab-completion for nuget package versions #42349
Enable tab-completion for nuget package versions #42349
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
1 similar comment
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
7ab336e
to
ee09bec
Compare
@martinrrm - Would you please take a look? |
@martinrrm if you want to take it for a spin yourself:
|
This is great addition 👏🏽👏🏽👏🏽 |
The tab completion takes into account any fragments of the version entered, as well as the --prerelease flag.
a003841
to
91794e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if you need an approval from me, change looks great, there is just that improvement we can do, not sure if it's going to be done in this PR. Thanks for the change!
I actually did that improvement today! So all is looking good. I'm going to ask the SDK team for code review as well then we can merge it. |
Does this deserve additions to telemetry notices? I don't remember any other tab completion in dotnet contacting network servers. |
I don't think it requires any additional telemetry notices - while this is novel in the sense that it checks your configured sources for packages, you're already signalling consent to communicating with those registries during restore, etc. Are there specific kinds of data you're concerned about leaking to feed owners that we can help proactively prevent? |
No, I'm not concerned about any specific kind of data. I just feel that, even if a user would be happy to let |
Package Id completions seem to be broken, needs more testing |
I believe we had mentioned there was also an issue with the version completion, and that it should be tested in scenarios without a |
We should backport this to the 9.0.1xx release branch now that it has branched off of main. |
Was this tested with a private Azure DevOps feed? By default, apps using NuGet.Protocol, |
It's worse than that @zivkan - the AzDo feeds don't actually support the searchautocompleteservice resource. The Registry apis will give you and AutoCompleteResource but then blow up with a protocolexception when you try to use that resource due to lack of the necessary endpoint. I would have expected a null instance if the Source didn't actually support autocompletion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out the previous 'issues' were with the nuget.config
... this is pretty awesome! Thank you for having a clean code style and writing useful comments. I could not find any bugs. I am very excited to see this feature ship 🚀
/backport to release/9.0.1xx |
Started backporting to release/9.0.1xx: https://github.com/dotnet/sdk/actions/runs/10412988686 |
The tab completion takes into account any fragments of the version entered, as well as the existing --prerelease flag to filter the returned versions.
Demo:
Cases to cover:
--interactive
likely will not work in a completions context