Skip to content

Add project detection via search paths and pyproject.toml support#25

Open
pimdh wants to merge 1 commit intorenan-r-santos:mainfrom
pimdh:feature/project-detection
Open

Add project detection via search paths and pyproject.toml support#25
pimdh wants to merge 1 commit intorenan-r-santos:mainfrom
pimdh:feature/project-detection

Conversation

@pimdh
Copy link
Copy Markdown

@pimdh pimdh commented Nov 5, 2025

Summary

This PR adds three key improvements to Pixi project discovery:

  1. Configurable search paths: Discover Pixi environments using python-env.globalSearchPaths and python-env.workspaceSearchPaths, and legacy python.venvPath / venvFolders.
  2. Directory traversal: Depth-limited scan (two levels) with heavy-directory skips and deduplication, shared between discovery sites
  3. pyproject.toml support: Detect Pixi projects with a [tool.pixi] section in pyproject.toml in addition to pixi.toml

Changes

Search paths support

pyproject.toml detection

  • Updated refreshPixi() to detect projects using pyproject.toml with [tool.pixi] section
  • Checks for both pixi.toml and pyproject.toml with [tool.pixi] when validating project directories
  • Returns early if neither file is found, avoiding unnecessary pixi info calls

Fixes #23 and fixes #27

@pimdh pimdh force-pushed the feature/project-detection branch from 95f7493 to a290fed Compare November 6, 2025 00:17
@pimdh
Copy link
Copy Markdown
Author

pimdh commented Nov 10, 2025

Also fixes #27


function getWorkspaceSearchPaths(): string[] {
try {
const envConfig = workspace.getConfiguration('python-env');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be python-envs

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect pyproject.toml with tool.pixi table as pixi workspace python.venvFolders not used

2 participants