Skip to content

Commit d5be8b0

Browse files
authored
Merge branch 'main' into obliged-tarantula
2 parents 2d976dc + 889a2c2 commit d5be8b0

33 files changed

+2003
-184
lines changed

.github/instructions/testing-workflow.instructions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,3 +574,6 @@ envConfig.inspect
574574
- Untestable Node.js APIs → Create proxy abstraction functions (use function overloads to preserve intelligent typing while making functions mockable)
575575

576576
## 🧠 Agent Learnings
577+
- Avoid testing exact error messages or log output - assert only that errors are thrown or rejection occurs to prevent brittle tests (1)
578+
- Create shared mock helpers (e.g., `createMockLogOutputChannel()`) instead of duplicating mock setup across multiple test files (1)
579+

.github/workflows/pr-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- release*
99

1010
env:
11-
NODE_VERSION: '20.18.1'
11+
NODE_VERSION: '22.21.1'
1212

1313
jobs:
1414
build-vsix:

.github/workflows/push-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- 'release-*'
1010

1111
env:
12-
NODE_VERSION: '20.18.1'
12+
NODE_VERSION: '22.21.1'
1313

1414
jobs:
1515
build-vsix:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.18.1
1+
22.21.1

CONTRIBUTING.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributing to Python Environments Extension
2+
3+
Thank you for your interest in contributing to the Python Environments extension! This guide will help you get started.
4+
5+
## Prerequisites
6+
7+
- Node.js (LTS version recommended)
8+
- npm
9+
- VS Code Insiders (recommended for development)
10+
- Git
11+
- Python
12+
13+
## Getting Started
14+
15+
1. **Clone the repository**
16+
```bash
17+
cd vscode-python-environments
18+
```
19+
20+
2. **Create a Python virtual environment**
21+
22+
3. **Install dependencies**
23+
```bash
24+
npm install
25+
```
26+
27+
4. **Build and watch**
28+
```bash
29+
npm run watch
30+
```
31+
32+
5. **Run tests**
33+
```bash
34+
npm run unittest
35+
```
36+
37+
## Development Workflow
38+
39+
### Running the Extension
40+
41+
1. Open the project in VS Code
42+
2. Press `F5` to launch the Extension Development Host
43+
3. The extension will be loaded in the new VS Code window
44+
45+
### Making Changes
46+
47+
- **Localization**: Use VS Code's `l10n` API for all user-facing messages
48+
- **Logging**: Use `traceLog` or `traceVerbose` instead of `console.log`
49+
- **Error Handling**: Track error state to avoid duplicate notifications
50+
- **Documentation**: Add clear docstrings to public functions
51+
52+
### Testing
53+
Run unit tests with the different configurations in the "Run and Debug" panel
54+
55+
## Contributor License Agreement (CLA)
56+
57+
This project requires contributors to sign a Contributor License Agreement (CLA). When you submit a pull request, a CLA bot will automatically check if you need to provide a CLA and guide you through the process. You only need to do this once across all Microsoft repositories.
58+
59+
## Code of Conduct
60+
61+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions.
62+
63+
## Questions or Issues?
64+
65+
- **Questions**: Start a [discussion](https://github.com/microsoft/vscode-python/discussions/categories/q-a)
66+
- **Bugs**: File an [issue](https://github.com/microsoft/vscode-python-environments/issues)
67+
- **Feature Requests**: Start a [discussion](https://github.com/microsoft/vscode-python/discussions/categories/ideas)
68+
69+
## Additional Resources
70+
71+
- [Development Process](https://github.com/Microsoft/vscode-python/blob/main/CONTRIBUTING.md#development-process)
72+
- [API Documentation](./src/api.ts)
73+
- [Project Documentation](./docs/projects-api-reference.md)
74+
75+
Thank you for contributing! 🎉

build/azure-pipeline.pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extends:
6666
buildSteps:
6767
- task: NodeTool@0
6868
inputs:
69-
versionSpec: '20.18.1'
69+
versionSpec: '22.21.1'
7070
displayName: Select Node version
7171

7272
- task: UsePythonVersion@0

build/azure-pipeline.stable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ extends:
5656
buildSteps:
5757
- task: NodeTool@0
5858
inputs:
59-
versionSpec: '20.18.1'
59+
versionSpec: '22.21.1'
6060
displayName: Select Node version
6161

6262
- task: UsePythonVersion@0
6363
inputs:
64-
versionSpec: '3.8'
64+
versionSpec: '3.9'
6565
addToPath: true
6666
architecture: 'x64'
6767
displayName: Select Python version
@@ -112,7 +112,7 @@ extends:
112112
project: 'Monaco'
113113
definition: 593
114114
buildVersionToDownload: 'latestFromBranch'
115-
branchName: 'refs/heads/release/2025.10'
115+
branchName: 'refs/heads/release/2025.16'
116116
targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin'
117117
artifactName: 'bin-$(buildTarget)'
118118
itemPattern: |

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Requirements
22

3-
1. `node` >= 20.18.1
3+
1. `node` >= 22.21.1
44
2. `npm` >= 10.9.0
55
3. `yo` >= 5.0.0 (installed via `npm install -g yo`)
66
4. `generator-code` >= 1.11.4 (installed via `npm install -g generator-code`)

package-lock.json

Lines changed: 49 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-python-envs",
33
"displayName": "Python Environments",
44
"description": "Provides a unified python environment experience",
5-
"version": "1.13.0",
5+
"version": "1.15.0",
66
"publisher": "ms-python",
77
"preview": true,
88
"engines": {
@@ -652,7 +652,7 @@
652652
"@types/fs-extra": "^11.0.4",
653653
"@types/glob": "^8.1.0",
654654
"@types/mocha": "^10.0.1",
655-
"@types/node": "20.2.5",
655+
"@types/node": "^22.15.1",
656656
"@types/sinon": "^17.0.3",
657657
"@types/stack-trace": "0.0.29",
658658
"@types/vscode": "^1.99.0",

0 commit comments

Comments
 (0)