Skip to content

Set as Interpreter hint displayed even when non-default setting is active #736

@gcp

Description

@gcp

Environment data

VS Code version: 1.20.0
Python Extension version: 2018.1.0
Python Version: Python 3.5.2
OS and version: Ubuntu 16.04 LTS

Actual behavior

vscode/settings.json has

{
"python.pythonPath": "${workspaceFolder}/venv/bin/python3"
}

main.py starts with

#!/usr/bin/env python3

Expected behavior

"Set As Interpreter" is not displayed. If clicked, it keeps the currently active python3 (from venv).

Steps to reproduce:

  • Click "Set as interpreter" on the #! line
  • See interpreter get set to system python3 instead of venv one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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