feat(run): Python run configuration type (#4126)

Adds PyCharm's Python configuration: a script or a -m module with arguments, command (interpreter or uv/poetry) and runner arguments; a plain python/python3 runs on the project interpreter as before. Existing python configurations (detected, imported, run from the context menu) open in this form when their command line maps to a script or module. projectPython prefers a detected python configuration over one made by hand.

Co-authored-by: wildcatDownstairs <[email protected]>
Цей коміт міститься в:
LU XIANGRUIтаwildcatDownstairs authored and GitHub committed 2026-11-18 16:36:56 +08:00
1 джерело 8959f7aa5d
коміт d7351dca1d
12 files changed
+158 -8

No files matched your search

+1
Переглянути файл
@@ -2456,5 +2456,6 @@
"Load Maven Project": "Load Maven Project",
"Skip": "Skip",
"Resize Markdown preview": "Resize Markdown preview",
"Run a Python script or module": "Run a Python script or module",
"Replace every occurrence of '{pattern}' with '{replacement}' in the scope? The search hit its limit, so it runs again to find the occurrences not listed.": "Replace every occurrence of '{pattern}' with '{replacement}' in the scope? The search hit its limit, so it runs again to find the occurrences not listed."
}
+1
Переглянути файл
@@ -5749,6 +5749,7 @@
"Archive ({count})": "归档({count})",
"Delete ({count})…": "删除({count})…",
"Run pytest tests": "运行 pytest 测试",
"Run a Python script or module": "运行 Python 脚本或模块",
"e.g. pytest, uv, poetry, .venv/bin/pytest, python": "例如 pytest、uv、poetry、.venv/bin/pytest、python",
"Runner arguments": "运行器实参",
"e.g. `run pytest` for uv/poetry, `-m pytest` for python; empty calls the command itself": "例如 uv/poetry 使用 `run pytest`,python 使用 `-m pytest`;留空则直接调用命令本身",
+2
Переглянути файл
@@ -258,6 +258,7 @@ const UNTRANSLATED = new Set<string>([
"go env GOPATH",
"kebab-case",
"KEY=value; OTHER=value",
"main.py",
"my-mcp-server",
"mysite.settings_test",
"NAME",
@@ -280,6 +281,7 @@ const UNTRANSLATED = new Set<string>([
"run python",
"snake_case",
"tests",
"uvicorn",
'{ "section": { "key": "value" } }',
// Identifiers that only look like text: icon names, error codes, categories, console output
"app",