Thank you for your interest in contributing to Pixi Code! This document provides guidelines for contributing to this VS Code extension that integrates Pixi environments with the Python Environments extension.
-
Prerequisites
- Node.js 20+
- VS Code with the Python Environments extension installed
- Pixi installed on your system
-
Clone and setup
git clone https://github.com/prefix-dev/pixi-code.git cd pixi-code npm install -
Development workflow
npm run compile # Build the extension npm run watch # Watch for changes during development
This project maintains strict code quality standards using TypeScript, ESLint, and Prettier. All code must pass these quality checks before being merged.
npm run lint # Check for linting issues
npm run format:check # Check code formatting
npm run compile # Build and verify compilationFixing issues:
npm run format # Auto-fix formatting issues
npm run lint -- --fix # Auto-fix linting issues where possibleFork the repository and create a feature branch:
git checkout -b feature/your-feature-name- Follow existing patterns: Study the codebase structure and maintain consistency
- TypeScript strict mode: Leverage strong typing throughout
- Import organization: ESLint automatically sorts and organizes imports
- Code formatting: Use Prettier to format your code
- Logging: Use the provided logging utilities in
src/common/logging.ts
Test the extension functionality:
- Press
F5in launch VS Code in debug mode - Open a project containing
pixi.tomlorpyproject.toml - Verify Pixi environments are discovered and functional
- Test environment switching and terminal activation
- Reference any related issues
- Submit a pull request with detailed description