Skip to content

Commit 17b562e

Browse files
authored
Merge branch 'main' into luabud-patch-1
2 parents 2eda35e + 9cb5ae7 commit 17b562e

File tree

8 files changed

+825
-151
lines changed

8 files changed

+825
-151
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
applyTo: '**'
3+
description: This document describes how to deal with learnings that you make. (meta instruction)
4+
---
5+
6+
This document describes how to deal with learnings that you make.
7+
It is a meta-instruction file.
8+
9+
Structure of learnings:
10+
11+
- Each instruction file has a "Learnings" section.
12+
- Each learning has a counter that indicates how often that learning was useful (initially 1).
13+
- Each learning has a 1 sentence description of the learning that is clear and concise.
14+
15+
Example:
16+
17+
```markdown
18+
## Learnings
19+
20+
- Prefer `const` over `let` whenever possible (1)
21+
- Avoid `any` type (3)
22+
```
23+
24+
When the user tells you "learn!", you should:
25+
26+
- extract a learning from the recent conversation
27+
_ identify the problem that you created
28+
_ identify why it was a problem
29+
_ identify how you were told to fix it/how the user fixed it
30+
_ generate only one learning (1 sentence) that helps to summarize the insight gained
31+
- then, add the reflected learning to the "Learnings" section of the most appropriate instruction file
32+
33+
Important: Whenever a learning was really useful, increase the counter!!
34+
When a learning was not useful and just caused more problems, decrease the counter.

.github/instructions/testing_feature_area.instructions.md

Lines changed: 187 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
mode: edit
3+
---
4+
5+
Analyze the specified part of the VS Code Python Extension codebase to generate or update implementation instructions in `.github/instructions/<component>.instructions.md`.
6+
7+
## Task
8+
9+
Create concise developer guidance focused on:
10+
11+
### Implementation Essentials
12+
13+
- **Core patterns**: How this component is typically implemented and extended
14+
- **Key interfaces**: Essential classes, services, and APIs with usage examples
15+
- **Integration points**: How this component interacts with other extension parts
16+
- **Common tasks**: Typical development scenarios with step-by-step guidance
17+
18+
### Content Structure
19+
20+
````markdown
21+
---
22+
description: 'Implementation guide for the <component> part of the Python Extension'
23+
---
24+
25+
# <Component> Implementation Guide
26+
27+
## Overview
28+
29+
Brief description of the component's purpose and role in VS Code Python Extension.
30+
31+
## Key Concepts
32+
33+
- Main abstractions and their responsibilities
34+
- Important interfaces and base classes
35+
36+
## Common Implementation Patterns
37+
38+
### Pattern 1: [Specific Use Case]
39+
40+
```typescript
41+
// Code example showing typical implementation
42+
```
43+
````
44+
45+
### Pattern 2: [Another Use Case]
46+
47+
```typescript
48+
// Another practical example
49+
```
50+
51+
## Integration Points
52+
53+
- How this component connects to other VS Code Python Extension systems
54+
- Required services and dependencies
55+
- Extension points and contribution models
56+
57+
## Essential APIs
58+
59+
- Key methods and interfaces developers need
60+
- Common parameters and return types
61+
62+
## Gotchas and Best Practices
63+
64+
- Non-obvious behaviors to watch for
65+
- Performance considerations
66+
- Common mistakes to avoid
67+
68+
```
69+
70+
## Guidelines
71+
- **Be specific**: Use actual class names, method signatures, and file paths
72+
- **Show examples**: Include working code snippets from the codebase
73+
- **Target implementation**: Focus on how to build with/extend this component
74+
- **Keep it actionable**: Every section should help developers accomplish tasks
75+
76+
Source conventions from existing `.github/instructions/*.instructions.md`, `CONTRIBUTING.md`, and codebase patterns.
77+
78+
If `.github/instructions/<component>.instructions.md` exists, intelligently merge new insights with existing content.
79+
```
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
mode: edit
3+
---
4+
5+
Analyze the user requested part of the codebase (use a suitable <placeholder>) to generate or update `.github/instructions/<placeholder>.instructions.md` for guiding developers and AI coding agents.
6+
7+
Focus on practical usage patterns and essential knowledge:
8+
9+
- How to use, extend, or integrate with this code area
10+
- Key architectural patterns and conventions specific to this area
11+
- Common implementation patterns with code examples
12+
- Integration points and typical interaction patterns with other components
13+
- Essential gotchas and non-obvious behaviors
14+
15+
Source existing conventions from `.github/instructions/*.instructions.md`, `CONTRIBUTING.md`, and `README.md`.
16+
17+
Guidelines:
18+
19+
- Write concise, actionable instructions using markdown structure
20+
- Document discoverable patterns with concrete examples
21+
- If `.github/instructions/<placeholder>.instructions.md` exists, merge intelligently
22+
- Target developers who need to work with or extend this code area
23+
24+
Update `.github/instructions/<placeholder>.instructions.md` with header:
25+
26+
```
27+
---
28+
description: "How to work with the <placeholder> part of the codebase"
29+
---
30+
```

package-lock.json

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

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "python",
33
"displayName": "Python",
44
"description": "Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refactoring, unit tests, and more.",
5-
"version": "2025.15.0-dev",
5+
"version": "2025.17.0-dev",
66
"featureFlags": {
77
"usingNewInterpreterStorage": true
88
},
@@ -1244,6 +1244,13 @@
12441244
"when": "controllerId == 'python-tests'"
12451245
}
12461246
],
1247+
"testing/item/gutter": [
1248+
{
1249+
"command": "python.copyTestId",
1250+
"group": "navigation",
1251+
"when": "controllerId == 'python-tests'"
1252+
}
1253+
],
12471254
"commandPalette": [
12481255
{
12491256
"category": "Python",

0 commit comments

Comments
 (0)