Repository navigation
feat(settings): Python 设置页显示当前解释器、补上隐藏类型错误,发布 1.1.0 - #13
Merged
Merged
Conversation
- 「语言与框架 › Python」顶部用工具行显示当前解释器,点击打开「工具链」页;四张预览卡片画出类型检查模式、诊断范围、自动导入补全和补全函数括号,随草稿更新 - 「构建工具 › Python」画出解释器的三步查找顺序(项目固定与项目内环境 → 全局设置 → 自动发现) - 「显示类型错误」改为开关「隐藏类型错误」;类型检查模式新增“宽松”;模式和导入路径风格的说明写明与其他设置的关系,不加依赖字段 - 删除「Python 解释器覆盖路径」,运行、测试、调试和 Pyrefly 都用工具链解析出的解释器 - debugpy 适配器声明 Python 3.10 下限,避免 3.9 上无提示退出 - 后端视图拆到 backend/src/view/,README 大幅简化,更新功能矩阵、发布说明和截图 - e2e 固定宿主升到 60885168,0.8.9 兼容子集改测固定解释器 Refs 1lck/Lithe-IDEA#2122 Refs 1lck/Lithe-IDEA#2316
xiaoyumuxi
marked this pull request as ready for review
November 22, 2026 23:43
This was referenced Nov 23, 2026
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 设置页和 Rust、Go 插件不一致:看不到当前用哪个解释器,只能在「Python 解释器覆盖路径」里手填,这个路径和「工具链」页、Pyrefly 各自解析,可能不是同一个解释器。预览没有画出「自动导入补全」和类型错误开关的效果,说明里也没写这些设置之间怎么相互影响。README 太长。
改动 / Changes
{"type": "tool", "tool": "python"}),显示当前解释器,点击打开「工具链」页更换。下面四张预览卡片画出类型检查模式、诊断范围、自动导入补全和补全函数括号,随未保存的草稿更新,宽窗并排、窄窗叠放。.venv、venv、.conda→ 全局设置 → 自动发现,并写明每一步给谁用。disableTypeErrors):开启后所有文件都不显示类型错误,包括有自己 Pyrefly 配置的项目。类型检查模式新增“宽松”。旧值不迁移,迁移方法写在发布说明里。pythonExecutable)。Pyrefly、当前文件运行、手动运行配置、pytest 和 debugpy 都使用工具链为项目解析出的同一个解释器;build_provider.py、run_entrypoint.py去掉覆盖分支。minimumVersion: "3.10"。内置 debugpy 1.8.22 不支持 3.9,以前在 3.9 上调试会无提示退出,现在宿主在启动前检查。运行、测试和依赖树仍支持 3.9。backend/src/settings_preview.rs拆到backend/src/view/:language.rs(语言页卡片)、resolution.rs(构建工具页查找顺序)、scene.rs(布局)、settings.rs(读设置与草稿)、words.rs(中英文案)。docs/releases/v1.1.0.md(中英文,含升级说明和 #2316 的已知限制);新增docs/assets/settings-previews/截图。scripts/test.mjs、scripts/package/archives.test.mjs覆盖新清单和视图;e2e 固定宿主升到60885168;0.8.9 兼容子集的RunCurrentFileInterpreterOverride改为RunCurrentFilePinnedInterpreter(固定PYTEST_PYTHON指向的真实安装,原因见 #2316)。plugin.json升到 1.1.0(feat 升次版本号)。不在本 PR 范围内 / Out of scope
ui: 0里的choose)、uv/conda/Poetry/Pipenv/Hatch 工具定义和创建环境:留给 1.2.0 预发布版。ui: 0、settingRegions和工具行,不升能力版本。截图 / Screenshots
固定宿主
60885168的 Viva 无头设置窗口,用本分支打出的darwin-arm64插件包。语言设置页(中文、深色)
语言设置页(英文、浅色、有未保存草稿)
构建工具页(中文、深色)
类型专属:feat
多平台对齐
范围检查 / Scope checks
docs/feature-matrix.md更新设置预览、工具链、当前文件运行、手动运行、调试器和国际化各行,删除「Python 解释器覆盖设置」行。litheLogging和 #12 的做法,高频预览成功静默。l10n/zh-Hans.json;预览文字由后端words.rs按宿主语言选择。pythonExecutable,displayTypeErrors改为disableTypeErrors,旧值不迁移(发布说明写明怎么改)。其他设置 ID 不变。ui: 0、settingRegions、工具行和lithe/function/invoke,不升能力版本。要求 Lithe 0.8.9 或更新。settings_preview.rs和覆盖路径的读取分支。验证 / Verification
cargo fmt --check、严格 Clippy、cargo test --locked(backend/)node scripts/package.mjs --platform darwin-arm64、node --test --test-timeout=60000 scripts/package/*.test.mjs、node scripts/test.mjsnode scripts/e2e-host.mjs(固定宿主60885168,完整宿主套件)--ref 4d1b88f0…,与 CI 同一正则)本地 e2e 的 PATH
python3需要 3.10 以上并支持venv --copies,PYTEST_PYTHON用 3.12。没有在 Windows、Linux 或原生窗口上验证。