Skip to content

Test support for dynamic updates in interpreter list #17538

Description

@karrtikr

Refs: #17043

Complexity: 4

Create Issue


Requirements

  • The more Python interpreters available, the better. Tagging everyone on the team as we already have a bunch of environments available, and it may take a significant time for other folks to install stuff. Make sure Conda is installed.
  • Use VSCode Insiders.
  • Use the latest Insiders build of the Python extension by running Python: Switch to Insiders command and reloading window.

Scenario 1: No environments on cache by default

  1. Activate the Python extension and run Python: Clear Internal extension cache to clear cache.
  2. Close any open workspaces/files and reload window.
  3. Activate the Python extension by using the Python: Select Interpreter command and see the list load dynamically, ensure you scroll while the list is loading. Make sure scroll position is preserved when new envs are added.

  1. Try the refresh button on the top right.
  2. Ensures Recommended label appears only after the refresh completes.
  3. Ensure active item never changes while the list is loading.
  4. Select an interpreter and use Python: Select Interpreter command again.
  5. Ensure an entry for python.defaultInterpreterPath is visible as well.

Scenario 2: Environments already on cache

  1. Open a folder containing workspace environments.
  2. Use Python: Select Interpreter command and Ensure we select an interpreter towards the end of the list. Reload window.
  3. Again use Python: Select Interpreter command.
  4. Ensure selected interpreter is in focus.
  5. Ensure interpreter list is sorted with workspace environments appearing first.
  6. Have list open and create a local environment in terminal, ensure the list updates.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions