-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Offer a "add to requirements.txt" code action when package is installed #21786
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
Comments
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
What do you mean by Code Action in this context? It will depend on where they initiate the install, from a terminal or from python code in the editor. In the terminal: I think we will need problem matcher for this that detects missing module first, then we could provide an action on that problem. In code: if pylance is already initiating the install, then this could be something pylance can already handle? |
Adding an item to Another thing is what happens when there are |
Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue. |
This is another idea which would be a precursor to #21555 is to offer a code action to add a missing dependency (probably matching an allow list) to requirements.txt.
The text was updated successfully, but these errors were encountered: