Skip to content

Feature Request: activate default project python/conda environment when launching a task #1053

Open

Description

@albertino87

hi,
following this issue: #1040 I want to request this feature that even though it was a side effect, it was very useful.

Basically whenever I launch a task located in a project (.vscode/tasks.json) i want the default python environment of that project to be activated by default. this should happen whatever shell activation I have selected.

Many thanks
regards

Activity

  1. syagev commented on Dec 10, 2025

    @syagev

    I find this critical. Many of the useful tasks one might have (running code quality checks, running scripts from the code base, etc.) need the venv activated and the .env file parsed.

    This worked before and I think a significant regression from before the Environments extension.

  2. anthonykim1 commented on Dec 11, 2025

    @anthonykim1
    Contributor

    Thanks for the feature request!

  3. added
    feature-requestRequest for new features or functionality
    area-terminalEnvironment extension specific terminal issues.
    area-activationIssue related to activation. Root cause can be from interpreter selection or activation in terminal
    and removed on Dec 11, 2025
  4. y2kbugger commented on Dec 16, 2025

    @y2kbugger
    ...
          "type": "process",
          "command": ".venv\\Scripts\\python.exe",
          "args": [
            "-muvicorn",
    ...
    

    seems to do the trick at least in my case

  5. liesauer commented on Aug 10, 2026

    @liesauer

    same here, the auto activation works for me before, it's broken again. it just boom from idk which version. 😭

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

Metadata

Metadata

Labels

area-activationIssue related to activation. Root cause can be from interpreter selection or activation in terminalarea-terminalEnvironment extension specific terminal issues.feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions