Skip to content

Commit 07bde98

Browse files
authored
Merge branch 'main' into able-badger
2 parents 56fd76c + ee40206 commit 07bde98

9 files changed

Lines changed: 1335 additions & 54 deletions

File tree

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
Please search existing issues first to avoid creating duplicates:
12+
https://github.com/microsoft/vscode-python-environments/issues
13+
-->
14+
15+
## Environment data
16+
17+
<!--
18+
To find extension versions, open the VS Code Extensions panel and locate each
19+
extension from the list of installed extensions. The version appears next to the name.
20+
-->
21+
22+
- Python Environments extension version: XXX
23+
- Python extension (`ms-python.python`) version: XXX
24+
- VS Code version (Help → About): XXX
25+
- OS and version: XXX
26+
- Python version (& distribution if applicable, e.g. Anaconda): XXX
27+
- Environment manager in use (`venv` / `conda` / `pyenv` / `poetry` / `pipenv` / `system` / `uv` / other): XXX
28+
- Shell (bash / zsh / fish / pwsh / cmd / other): XXX
29+
- Remote / container scenario (none / WSL / SSH Remote / Dev Container / Codespaces): XXX
30+
- Workspace type (single folder / multi-root / mono-repo): XXX
31+
- Is this a regression? If yes, last known working extension version: XXX
32+
33+
## Repro Steps
34+
35+
<!--
36+
Please list the minimal steps needed to reproduce the issue, starting from a fresh
37+
VS Code window when possible. If the issue only reproduces with specific workspace
38+
contents (e.g. a `pyproject.toml`, `.venv`, `environment.yml`, `Pipfile`, `poetry.lock`,
39+
`.python-version`), please share a minimal example or describe the layout.
40+
41+
If the bug only reproduces with certain settings, please include the relevant entries
42+
from your `settings.json` (user and/or workspace).
43+
-->
44+
45+
1. XXX
46+
47+
## Expected behavior
48+
49+
XXX
50+
51+
## Actual behavior
52+
53+
XXX
54+
55+
## Logs
56+
57+
<!--
58+
Please include logs from the "Python Environments" output channel.
59+
60+
To capture verbose logs:
61+
1. Open the Output panel (View → Output).
62+
2. Select "Python Environments" from the channel dropdown in the upper-right.
63+
3. Click the gear / filter icon at the top of the Output panel and set the level to "Trace".
64+
(Alternatively: Command Palette → "Developer: Set Log Level…" → "Python Environments" → "Trace".)
65+
4. Reproduce the issue.
66+
5. Paste the relevant output below, or save it to a `.txt` file and attach it to the issue (preferred for long logs).
67+
68+
If the issue is about terminal activation, please also paste the exact terminal
69+
output where the problem occurs.
70+
-->
71+
72+
```
73+
XXX
74+
```
75+
76+
## Additional context
77+
78+
<!--
79+
Anything else that may help us reproduce: screenshots, videos, related issues,
80+
links to your project, workarounds you've tried, etc.
81+
-->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Please search existing feature requests to avoid creating duplicates. -->
11+
12+
<!-- Describe the feature you'd like. -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Question
3+
about: Ask a question about this project.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
Please search existing issues to avoid creating duplicates.
12+
For general Python-in-VS-Code usage questions, consider starting a discussion at
13+
https://github.com/microsoft/vscode-python/discussions/categories/q-a
14+
or checking the issues in the following related repositories:
15+
- Python extension: https://github.com/microsoft/vscode-python/issues
16+
- Pylance: https://github.com/microsoft/pylance-release/issues
17+
- Jupyter: https://github.com/microsoft/vscode-jupyter/issues
18+
- Python Debugger: https://github.com/microsoft/vscode-python-debugger/issues
19+
-->

src/common/telemetry/constants.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ export enum EventNames {
123123
* - errorType: string (classified error category, on failure only)
124124
*/
125125
MANAGER_LAZY_INIT = 'MANAGER.LAZY_INIT',
126+
/**
127+
* Telemetry event fired when the JSON CLI fallback is used for environment discovery.
128+
* Triggered when the PET JSON-RPC server mode is exhausted after all restart attempts.
129+
* Properties:
130+
* - operation: 'refresh' | 'resolve'
131+
* - result: 'success' | 'error'
132+
* - duration: number (milliseconds taken for the CLI operation)
133+
*/
134+
PET_JSON_CLI_FALLBACK = 'PET.JSON_CLI_FALLBACK',
126135
}
127136

128137
// Map all events to their properties
@@ -428,4 +437,16 @@ export interface IEventNamePropertyMapping {
428437
toolSource: string;
429438
errorType?: string;
430439
};
440+
441+
/* __GDPR__
442+
"pet.json_cli_fallback": {
443+
"operation": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
444+
"result": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "owner": "StellaHuang95" },
445+
"<duration>": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "owner": "StellaHuang95" }
446+
}
447+
*/
448+
[EventNames.PET_JSON_CLI_FALLBACK]: {
449+
operation: 'refresh' | 'resolve';
450+
result: 'success' | 'error';
451+
};
431452
}

0 commit comments

Comments
 (0)