Skip to content

Commit 8b67c2b

Browse files
authored
Merge branch 'main' into awake-cricket
2 parents 76daa2f + 1f8949c commit 8b67c2b

File tree

20 files changed

+177
-101
lines changed

20 files changed

+177
-101
lines changed

.github/release_plan.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ NOTE: the number of this release is in the issue title and can be substituted in
4040
- [ ] Update `pet`:
4141
- [ ] Go to the [pet](https://github.com/microsoft/python-environment-tools) repo and check `main` and latest `release/*` branch. If there are new changes in `main` then create a branch called `release/YYYY.minor` (matching python extension release `major.minor`).
4242
- [ ] Update `build\azure-pipeline.stable.yml` to point to the latest `release/YYYY.minor` for `python-environment-tools`.
43-
- [ ] Change the version in `package.json` to the next **even** number and switch the `-dev` to `-rc`. (🤖)
43+
- [ ] Change the version in `package.json` to the next **even** number. (🤖)
4444
- [ ] Run `npm install` to make sure `package-lock.json` is up-to-date _(you should now see changes to the `package.json` and `package-lock.json` at this point which update the version number **only**)_. (🤖)
4545
- [ ] Update `ThirdPartyNotices-Repository.txt` as appropriate. You can check by looking at the [commit history](https://github.com/microsoft/vscode-python/commits/main) and scrolling through to see if there's anything listed there which might have pulled in some code directly into the repository from somewhere else. If you are still unsure you can check with the team.
4646
- [ ] Create a PR from your branch **`bump-release-[YYYY.minor]`** to `main`. Add the `"no change-log"` tag to the PR so it does not show up on the release notes before merging it.
@@ -64,7 +64,7 @@ NOTE: If there are release branches that are two versions old you can delete the
6464
### Step 4: Return `main` to dev and unfreeze (❄️ ➡ 💧)
6565
NOTE: The purpose of this step is ensuring that main always is on a dev version number for every night's 🌃 pre-release. Therefore it is imperative that you do this directly after the previous steps to reset the version in main to a dev version **before** a pre-release goes out.
6666
- [ ] Create a branch called **`bump-dev-version-YYYY.[minor+1]`**.
67-
- [ ] Bump the minor version number in the `package.json` to the next `YYYY.[minor+1]` which will be an odd number, and switch the `-rc` to `-dev`.(🤖)
67+
- [ ] Bump the minor version number in the `package.json` to the next `YYYY.[minor+1]` which will be an odd number, and add `-dev`.(🤖)
6868
- [ ] Run `npm install` to make sure `package-lock.json` is up-to-date _(you should now see changes to the `package.json` and `package-lock.json` only relating to the new version number)_ . (🤖)
6969
- [ ] Create a PR from this branch against `main` and merge it.
7070

@@ -83,12 +83,6 @@ NOTE: this PR should make all CI relating to `main` be passing again (such as th
8383
### Step 6: Take the release branch from a candidate to the finalized release
8484
- [ ] Make sure the [appropriate pull requests](https://github.com/microsoft/vscode-docs/pulls) for the [documentation](https://code.visualstudio.com/docs/python/python-tutorial) -- including the [WOW](https://code.visualstudio.com/docs/languages/python) page -- are ready.
8585
- [ ] Check to make sure any final updates to the **`release/YYYY.minor`** branch have been merged.
86-
- [ ] Create a branch against **`release/YYYY.minor`** called **`finalized-release-[YYYY.minor]`**.
87-
- [ ] Update the version in `package.json` to remove the `-rc` (🤖) from the version.
88-
- [ ] Run `npm install` to make sure `package-lock.json` is up-to-date _(the only update should be the version number if `package-lock.json` has been kept up-to-date)_. (🤖)
89-
- [ ] Update `ThirdPartyNotices-Repository.txt` manually if necessary.
90-
- [ ] Create a PR from **`finalized-release-[YYYY.minor]`** against `release/YYYY.minor` and merge it.
91-
9286

9387
### Step 7: Execute the Release
9488
- [ ] Make sure CI is passing for **`release/YYYY.minor`** release branch (🤖).

.github/workflows/pr-file-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
if (!labels.includes('skip-issue-check')) {
5252
const prBody = context.payload.pull_request.body || '';
5353
const issueLink = prBody.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
54-
if (!issueLink) {
54+
const issueReference = prBody.match(/#\d+/);
55+
if (!issueLink && !issueReference) {
5556
core.setFailed('No associated issue found in the PR description.');
5657
}
5758
}

.github/workflows/pr-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
pull-requests: write
1818
steps:
1919
- name: 'PR impact specified'
20-
uses: mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # v5.5.0
20+
uses: mheap/github-action-required-labels@8afbe8ae6ab7647d0c9f0cfa7c2f939650d22509 # v5.5.1
2121
with:
2222
mode: exactly
2323
count: 1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you encounter issues with any of the listed extensions, please file an issue
2727

2828
## Quick start
2929

30-
- **Step 1.** [Install a supported version of Python on your system](https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites) (note: that the system install of Python on macOS is not supported).
30+
- **Step 1.** [Install a supported version of Python on your system](https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites) (note: the system install of Python on macOS is not supported).
3131
- **Step 2.** [Install the Python extension for Visual Studio Code](https://code.visualstudio.com/docs/editor/extension-gallery).
3232
- **Step 3.** Open or create a Python file and start coding!
3333

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: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
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.10.0",
5+
"version": "2025.11.0-dev",
66
"featureFlags": {
77
"usingNewInterpreterStorage": true
88
},
99
"capabilities": {
1010
"untrustedWorkspaces": {
11-
"supported": "limited",
12-
"description": "Only Partial IntelliSense with Pylance is supported. Cannot execute Python with untrusted files."
11+
"supported": false,
12+
"description": "The Python extension is not available in untrusted workspaces. Use Pylance to get partial IntelliSense support for Python files."
1313
},
1414
"virtualWorkspaces": {
1515
"supported": "limited",
@@ -272,6 +272,11 @@
272272
"category": "Python",
273273
"command": "python.createNewFile"
274274
},
275+
{
276+
"category": "Python",
277+
"command": "python.copyTestId",
278+
"title": "%python.command.python.testing.copyTestId.title%"
279+
},
275280
{
276281
"category": "Python",
277282
"command": "python.analysis.restartLanguageServer",
@@ -1231,6 +1236,13 @@
12311236
"command": "python.reportIssue"
12321237
}
12331238
],
1239+
"testing/item/context": [
1240+
{
1241+
"command": "python.copyTestId",
1242+
"group": "navigation",
1243+
"when": "controllerId == 'python-tests'"
1244+
}
1245+
],
12341246
"commandPalette": [
12351247
{
12361248
"category": "Python",
@@ -1306,6 +1318,12 @@
13061318
"title": "%python.command.python.execSelectionInTerminal.title%",
13071319
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
13081320
},
1321+
{
1322+
"category": "Python",
1323+
"command": "python.copyTestId",
1324+
"title": "%python.command.python.testing.copyTestId.title%",
1325+
"when": "false"
1326+
},
13091327
{
13101328
"category": "Python",
13111329
"command": "python.execInREPL",

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"python.command.python.analysis.restartLanguageServer.title": "Restart Language Server",
2828
"python.command.python.launchTensorBoard.title": "Launch TensorBoard",
2929
"python.command.python.refreshTensorBoard.title": "Refresh TensorBoard",
30+
"python.command.python.testing.copyTestId.title": "Copy Test Id",
3031
"python.createEnvironment.contentButton.description": "Show or hide Create Environment button in the editor for `requirements.txt` or other dependency files.",
3132
"python.createEnvironment.trigger.description": "Detect if environment creation is required for the current project",
3233
"python.menu.createNewFile.title": "Python File",

python_files/unittestadapter/django_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def django_execution_runner(manage_py_path: str, test_ids: List[str], args: List
104104
manage_file = manage_path.open()
105105
with argv_context, suppress_context, manage_file:
106106
manage_code = manage_file.read()
107-
exec(manage_code, {"__name__": "__main__"})
107+
exec(manage_code, {"__name__": "__main__", "__file__": manage_path})
108108
except OSError as e:
109109
raise VSCodeUnittestError("Error running Django, unable to read manage.py") from e
110110
except Exception as e:

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile --generate-hashes requirements.in -o requirements.txt
3-
importlib-metadata==8.6.1 \
4-
--hash=sha256:02a89390c1e15fdfdc0d7c6b25cb3e62650d0494005c97d6f148bf5b9787525e \
5-
--hash=sha256:310b41d755445d74569f993ccfc22838295d9fe005425094fad953d7f15c8580
3+
importlib-metadata==8.7.0 \
4+
--hash=sha256:d13b81ad223b890aa16c5471f2ac3056cf76c5f10f82d6f9292f0b415f389000 \
5+
--hash=sha256:e5dd1551894c77868a30651cef00984d50e1002d06942a7101d34870c5f02afd
66
# via -r requirements.in
77
microvenv==2023.5.post1 \
88
--hash=sha256:32c46afea874e300f69f1add0806eb0795fd02b5fb251092fba0b73c059a7d1f \

src/client/common/application/commands.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
'use strict';
55

6-
import { CancellationToken, Position, TextDocument, Uri } from 'vscode';
6+
import { CancellationToken, Position, TestItem, TextDocument, Uri } from 'vscode';
77
import { Commands as LSCommands } from '../../activation/commands';
88
import { Channel, Commands, CommandSource } from '../constants';
99
import { CreateEnvironmentOptions } from '../../pythonEnvironments/creation/proposed.createEnvApis';
@@ -50,6 +50,7 @@ export type AllCommands = keyof ICommandNameArgumentTypeMapping;
5050
* Used to provide strong typing for command & args.
5151
*/
5252
export interface ICommandNameArgumentTypeMapping extends ICommandNameWithoutArgumentTypeMapping {
53+
[Commands.CopyTestId]: [TestItem];
5354
[Commands.Create_Environment]: [CreateEnvironmentOptions];
5455
['vscode.openWith']: [Uri, string];
5556
['workbench.action.quickOpen']: [string];

0 commit comments

Comments
 (0)