Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/install-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
using: "composite"
steps:
- name: Install Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.12.6'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/positron-python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
uv pip install --upgrade -r build/test-requirements.txt -r ./python_files/posit/pinned-test-requirements.txt

- name: Run Pyright
uses: jakebailey/pyright-action@b5d50e5cde6547546a5c4ac92e416a8c2c1a1dfe # v2.3.2
uses: jakebailey/pyright-action@6cabc0f01c4994be48fd45cd9dbacdd6e1ee6e5e # v2.3.3
with:
version: 1.1.308
working-directory: ${{ env.PYTHON_SRC_DIR }}
Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:
cache-dependency-path: ${{ env.special-working-directory-relative }}/${{ env.PROJECT_DIR }}/package-lock.json

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
cache: 'pip'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-e2e-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
shell: bash

- name: Install System Level Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10.10"

Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:

# Alternate python version
- name: Install Python 3.13.0
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.13.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:

# Jedi LS depends on dataclasses which is not in the stdlib in Python 3.7.
- name: Use Python 3.9 for JediLSP
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.9
cache: 'pip'
Expand Down
4 changes: 2 additions & 2 deletions extensions/positron-python/.github/actions/lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
using: 'composite'
steps:
- name: Install Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ inputs.node_version }}
cache: 'npm'
Expand All @@ -36,7 +36,7 @@ runs:
shell: bash

- name: Install Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'
cache: 'pip'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
applyTo: '**'
description: This document describes how to deal with learnings that you make. (meta instruction)
---

This document describes how to deal with learnings that you make.
It is a meta-instruction file.

Structure of learnings:

- Each instruction file has a "Learnings" section.
- Each learning has a counter that indicates how often that learning was useful (initially 1).
- Each learning has a 1 sentence description of the learning that is clear and concise.

Example:

```markdown
## Learnings

- Prefer `const` over `let` whenever possible (1)
- Avoid `any` type (3)
```

When the user tells you "learn!", you should:

- extract a learning from the recent conversation
_ identify the problem that you created
_ identify why it was a problem
_ identify how you were told to fix it/how the user fixed it
_ generate only one learning (1 sentence) that helps to summarize the insight gained
- then, add the reflected learning to the "Learnings" section of the most appropriate instruction file

Important: Whenever a learning was really useful, increase the counter!!
When a learning was not useful and just caused more problems, decrease the counter.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
mode: edit
---

Analyze the specified part of the VS Code Python Extension codebase to generate or update implementation instructions in `.github/instructions/<component>.instructions.md`.

## Task

Create concise developer guidance focused on:

### Implementation Essentials

- **Core patterns**: How this component is typically implemented and extended
- **Key interfaces**: Essential classes, services, and APIs with usage examples
- **Integration points**: How this component interacts with other extension parts
- **Common tasks**: Typical development scenarios with step-by-step guidance

### Content Structure

````markdown
---
description: 'Implementation guide for the <component> part of the Python Extension'
---

# <Component> Implementation Guide

## Overview

Brief description of the component's purpose and role in VS Code Python Extension.

## Key Concepts

- Main abstractions and their responsibilities
- Important interfaces and base classes

## Common Implementation Patterns

### Pattern 1: [Specific Use Case]

```typescript
// Code example showing typical implementation
```
````

### Pattern 2: [Another Use Case]

```typescript
// Another practical example
```

## Integration Points

- How this component connects to other VS Code Python Extension systems
- Required services and dependencies
- Extension points and contribution models

## Essential APIs

- Key methods and interfaces developers need
- Common parameters and return types

## Gotchas and Best Practices

- Non-obvious behaviors to watch for
- Performance considerations
- Common mistakes to avoid

```

## Guidelines
- **Be specific**: Use actual class names, method signatures, and file paths
- **Show examples**: Include working code snippets from the codebase
- **Target implementation**: Focus on how to build with/extend this component
- **Keep it actionable**: Every section should help developers accomplish tasks

Source conventions from existing `.github/instructions/*.instructions.md`, `CONTRIBUTING.md`, and codebase patterns.

If `.github/instructions/<component>.instructions.md` exists, intelligently merge new insights with existing content.
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
mode: edit
---

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.

Focus on practical usage patterns and essential knowledge:

- How to use, extend, or integrate with this code area
- Key architectural patterns and conventions specific to this area
- Common implementation patterns with code examples
- Integration points and typical interaction patterns with other components
- Essential gotchas and non-obvious behaviors

Source existing conventions from `.github/instructions/*.instructions.md`, `CONTRIBUTING.md`, and `README.md`.

Guidelines:

- Write concise, actionable instructions using markdown structure
- Document discoverable patterns with concrete examples
- If `.github/instructions/<placeholder>.instructions.md` exists, merge intelligently
- Target developers who need to work with or extend this code area

Update `.github/instructions/<placeholder>.instructions.md` with header:

```
---
description: "How to work with the <placeholder> part of the codebase"
---
```
10 changes: 5 additions & 5 deletions extensions/positron-python/.github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Use Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand All @@ -155,7 +155,7 @@ jobs:
python -m pip install --upgrade -r build/test-requirements.txt

- name: Run Pyright
uses: jakebailey/pyright-action@b5d50e5cde6547546a5c4ac92e416a8c2c1a1dfe # v2.3.2
uses: jakebailey/pyright-action@6cabc0f01c4994be48fd45cd9dbacdd6e1ee6e5e # v2.3.3
with:
version: 1.1.308
working-directory: 'python_files'
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
persist-credentials: false

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:
sparse-checkout-cone-mode: false

- name: Install Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
Expand All @@ -252,7 +252,7 @@ jobs:
run: npx @vscode/l10n-dev@latest export ./src

- name: Install Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down
12 changes: 6 additions & 6 deletions extensions/positron-python/.github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Use Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
python -m pip install --upgrade -r build/test-requirements.txt

- name: Run Pyright
uses: jakebailey/pyright-action@b5d50e5cde6547546a5c4ac92e416a8c2c1a1dfe # v2.3.2
uses: jakebailey/pyright-action@6cabc0f01c4994be48fd45cd9dbacdd6e1ee6e5e # v2.3.3
with:
version: 1.1.308
working-directory: 'python_files'
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
persist-credentials: false

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
run: npx @vscode/l10n-dev@latest export ./src

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -505,7 +505,7 @@ jobs:
sparse-checkout-cone-mode: false

- name: Install Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
Expand All @@ -520,7 +520,7 @@ jobs:
run: npx @vscode/l10n-dev@latest export ./src

- name: Use Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
failure-message: 'TypeScript code was edited without also editing a ${file-pattern} file; see the Testing page in our wiki on testing guidelines (the ${skip-label} label can be used to pass this check)'

- name: 'Ensure PR has an associated issue'
uses: actions/github-script@v7
uses: actions/github-script@v8
with:
script: |
const labels = context.payload.pull_request.labels.map(label => label.name);
Expand Down
7 changes: 7 additions & 0 deletions extensions/positron-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,13 @@
"when": "controllerId == 'python-tests'"
}
],
"testing/item/gutter": [
{
"command": "python.copyTestId",
"group": "navigation",
"when": "controllerId == 'python-tests'"
}
],
"commandPalette": [
{
"category": "Python",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
#
--only-binary :all:

psutil==7.1.0 \
--hash=sha256:09ad740870c8d219ed8daae0ad3b726d3bf9a028a198e7f3080f6a1888b99bca \
--hash=sha256:22e4454970b32472ce7deaa45d045b34d3648ce478e26a04c7e858a0a6e75ff3 \
--hash=sha256:57f5e987c36d3146c0dd2528cd42151cf96cd359b9d67cfff836995cc5df9a3d \
--hash=sha256:5d007560c8c372efdff9e4579c2846d71de737e4605f611437255e81efcca2c5 \
--hash=sha256:6937cb68133e7c97b6cc9649a570c9a18ba0efebed46d8c5dae4c07fa1b67a07 \
--hash=sha256:76168cef4397494250e9f4e73eb3752b146de1dd950040b29186d0cce1d5ca13 \
--hash=sha256:7d4a113425c037300de3ac8b331637293da9be9713855c4fc9d2d97436d7259d \
--hash=sha256:8c70e113920d51e89f212dd7be06219a9b88014e63a4cec69b684c327bc474e3
psutil==7.1.1 \
--hash=sha256:146a704f224fb2ded2be3da5ac67fc32b9ea90c45b51676f9114a6ac45616967 \
--hash=sha256:295c4025b5cd880f7445e4379e6826f7307e3d488947bf9834e865e7847dc5f7 \
--hash=sha256:2a95104eae85d088891716db676f780c1404fc15d47fde48a46a5d61e8f5ad2c \
--hash=sha256:5457cf741ca13da54624126cd5d333871b454ab133999a9a103fb097a7d7d21a \
--hash=sha256:8fa59d7b1f01f0337f12cd10dbd76e4312a4d3c730a4fedcbdd4e5447a8b8460 \
--hash=sha256:92ebc58030fb054fa0f26c3206ef01c31c29d67aee1367e3483c16665c25c8d2 \
--hash=sha256:98629cd8567acefcc45afe2f4ba1e9290f579eacf490a917967decce4b74ee9b \
--hash=sha256:9b4f17c5f65e44f69bd3a3406071a47b79df45cf2236d1f717970afcb526bcd3
# via ipykernel
tornado==6.5.2 \
--hash=sha256:06ceb1300fd70cb20e43b1ad8aaee0266e69e7ced38fa910ad2e03285009ce7c \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ executing==2.2.1 \
importlib-metadata==8.7.0 \
--hash=sha256:e5dd1551894c77868a30651cef00984d50e1002d06942a7101d34870c5f02afd
# via jupyter-client
ipykernel==6.30.1 \
--hash=sha256:aa6b9fb93dca949069d8b85b6c79b2518e32ac583ae9c7d37c51d119e18b3fb4
ipykernel==6.31.0 \
--hash=sha256:abe5386f6ced727a70e0eb0cf1da801fa7c5fa6ff82147747d5a0406cd8c94af
# via python scripts/pip-compile-ipykernel.py
ipython==8.18.1 \
--hash=sha256:e8267419d72d81955ec1177f8a29aaa90ac80ad647499201119e2f05e99aa397
Expand Down
Loading
Loading