Repository navigation
feat(python): 新增手动运行配置与依赖树 - #10
Merged
Merged
Conversation
6 of 9 tasks
Mucheen
marked this pull request as ready for review
November 21, 2026 07:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
Python 项目已经能从当前文件和构建目标运行。运行配置的「+」菜单缺少可手动创建的 Python 类型,构建面板也没有所选解释器的依赖结构。
改动 / Changes
复审修复
environment.yml或environment.yaml的项目现在也检测为 Python 项目。macOS 工作台回归覆盖只含 Conda 清单的项目,验证保存和运行脚本及模块,以及展开实际解释器的依赖。db0f6e6c。桌面主线d38481953在本地链接该 Core 后,Conda 清单和多项目两项工作台回归均通过。桌面固定修订待更新。python -I -B,跳过用户级 site-packages 及其启动钩子。打包命令测试确认旧包会执行测试的usercustomize.py,修复后的包跳过该钩子并成功生成依赖报告。虚拟环境内已安装的发行包仍可查询。不在本 PR 范围内 / Out of scope
单配置的解释器选择和从这种声明式配置直接启动 debugpy 需要宿主扩展。当前文件的断点调试继续通过已有入口使用。
类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
docs/feature-matrix.md记录两项功能和平台实测状态。Windows、Linux 和 macOS x64 原生验证仍为 pending。插件归属 / Plugin ownership
UI 验证 / UI evidence
TestPythonSupportPluginManualRunAndDependencies。固定宿主645a3aee,深色、简体中文,逻辑尺寸 1280×840。查看新增菜单、脚本和模块表单、展开后的依赖树。统一日志系统 / Structured logging
lithe/build/dependencies终态事件,沿用命令错误和报告解码失败路径。界面文案 / i18n
l10n/zh-Hans.json提供中文。通过实际工作台检查菜单和中文字段。verify-app-language-localization.mjs和generate-i18n.mjs --check均通过。逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
插件契约 / Plugin contract
runConfigurationTypes: 0和litheDependencies命令,无契约、版本、Core pin、SDK 或宿主 API 新增与修改。发行包与资源 / Bundle and resources
无用代码与重构 / Dead code and refactoring
验证 / Verification
node scripts/test.mjsnode scripts/e2e-host.mjs --ref 4d1b88f0… --run '^TestPythonSupportPlugin(GrammarHighlighting|RunCurrentFile(InterpreterOverride)?|ManualRunAndDependencies)$'node --test --test-timeout=60000 scripts/package/*.test.mjs和 Store 归档验证actionlint、git diff --check、宿主包只读检查和测试稳定性静态检查用新包在桌面主线
d38481953和 Coredb0f6e6c上复跑脚本、模块与依赖树,工作台用例 2.35 秒通过。Python 3.9.6 的两项依赖查询测试通过。新旧包的 debugpy 测试均在该版本提前退出,内置 debugpy 1.8.22 要求 Python ≥3.10。上表的 14 项通过使用 Python 3.12 运行命令测试。
Windows 原生工作台、Linux 原生工作台、macOS x64 原生工作台及实际 Conda 环境待验收。Windows 本地交叉打包缺少 MSVC 链接器。Windows 打包和命令测试由插件 CI 执行。
提交前确认 / Final checks
17c0274d切出,目标main。