Fix log message to correctly reference invalid venv environment not conda #788
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Problem
The
findVirtualEnvironmentsfunction insrc/managers/builtin/venvUtils.tswas logging misleading warning messages. When encountering an invalid virtual environment (missing prefix, executable, or version), it would log:However, this function is specifically designed to find and process venv environments, not conda environments. The function correctly filters for
NativePythonEnvironmentKind.venvon line 179, making the conda reference in the warning message incorrect and confusing for developers debugging environment discovery issues.Solution
Updated the warning message on line 183 to accurately reflect the environment type being processed:
Impact
This change provides accurate debugging information when invalid venv environments are encountered, making it easier for developers and users to understand which type of environment manager is reporting the issue. The fix is minimal and surgical, changing only the log message text without affecting any functionality.
All existing tests continue to pass, confirming that this change doesn't introduce any regressions.
Created from VS Code via the GitHub Pull Request extension.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.