Skip to content
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

Only trigger auto environment discovery if a user attempts to choose a different interpreter, or when a particular scope is opened for the first time #19162

Merged
merged 33 commits into from
May 18, 2022

Conversation

karrtikr
Copy link

@karrtikr karrtikr commented May 17, 2022

Closes #19102

Things considered:

  • Make sure legacy jupyter integration APIs still carry the old behavior.
  • Make sure active interpreter is still valid even if no discovery is triggered. We do a minimal path exists validation of discovery cache, which ensures this.

@karrtikr karrtikr changed the title Only trigger auto environment discovery once in the first session for a particular scope or if user interacts with discovery component Only trigger auto environment discovery if a user attempts to choose a different interpreter, or when a particular scope is opened for the first time May 17, 2022
@karrtikr karrtikr marked this pull request as ready for review May 17, 2022 23:26
@karrtikr karrtikr merged commit 57030c1 into microsoft:main May 18, 2022
@karrtikr karrtikr deleted the newauto branch May 18, 2022 16:52
wesm pushed a commit to posit-dev/positron that referenced this pull request Mar 28, 2024
…a different interpreter, or when a particular scope is opened for the first time (microsoft/vscode-python#19162)

* Add progress API

* Remove old API in favor of this

* Revert "Remove old API in favor of this"

This reverts commit 9543501576cd063e6aad1ef3ddd7a39cb3354b22.

* Revert "Revert "Remove old API in favor of this""

This reverts commit 5bbea78879f2447c6783d7ad98610d4af36abf29.

* Fix

* Remove old API impl

* Add to proposed API

* Add get refresh promise options

* Change getter to function

* Translate progress events to progress promises

* Fix combining iterators

* Fix tests

* Add test for resolver

* Add test for reducer

* Fixes

* Add tests for environment collection service

* News entry

* Add another test if a query is provided

* Add comments and clarify

* Fix bug

* Use extensionUrl instead of extensionPath (microsoft/vscode-python#19122)

* Only trigger auto environment discovery once in the first session for a particular scope

* Oops

* Ensure old Jupyter APIs still have the old behavior

* Trigger auto-discovery if a user is attempting to choose a different interpreter

* Fix tests

* Temp

* Add an option to trigger refresh for the session

* Fix bugs

* Fix tests

* Remove trigger from telemetry

* Add tests for options

Co-authored-by: Karthik Nadig <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants