Skip to content
Merged
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
1 change: 1 addition & 0 deletions docs/feature-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

| 能力域 | 功能项 | `darwin-arm64` | `darwin-x64` | `windows-x64` / `windows-arm64` | `linux-x64` / `linux-arm64` | 最近实机验证 | 实现与测试证据路径(本仓库) |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Python 解释器覆盖设置 | 在「设置 → 语言与框架 → Python」显示用于构建、运行和 pytest 的解释器覆盖路径。已保存的覆盖值继续按 `pythonExecutable` 读取。 | ✅ Core 设置目录与保存值回读通过 | ⏳ 平台清单已验证 | ⏳ 平台清单已验证 | ⏳ 平台清单已验证 | `2026-11-22`(`darwin-arm64`,桌面 0.8.13 固定 Core) | `io.github.lithe-idea.python-support/plugin.json`<br>`scripts/package/archives.test.mjs` |
| 语言基础 (`languages`) | `.py` / `.pyi` / `.pyw` 识别、`#` 行注释、括号/引号配对、项目标记与 `.venv` / `venv` / `.conda` 依赖目录 | ✅ 已验证 | ⏳ pending(归档与清单已校验) | ⏳ pending(归档与 Windows 清单已校验) | ⏳ pending(归档与清单已校验) | `2026-11-20`(`darwin-arm64`,0.8.9 复验 `.py` 高亮) | `io.github.lithe-idea.python-support/plugin.json`<br>`scripts/test.mjs`<br>`e2e/host/desktop/internal/workbench/python_support_plugin_e2e_test.go`<br>`e2e/host/desktop/internal/workbench/python_shebang_e2e_test.go` |
| 无后缀 Python 脚本 | 支持 TextMate 首行匹配的桌面按解释器路径或 `env` shebang 打开,提供 Python 高亮、注释与 Pyrefly 诊断 | ✅ 已验证 | ⏳ 待实机验证 | ⏳ 待实机验证 | ⏳ 待实机验证 | `2026-11-20`(`darwin-arm64`,桌面 `645a3aee8`) | `io.github.lithe-idea.python-support/grammars/python.first-line.json`<br>`scripts/test.mjs`<br>`e2e/host/desktop/internal/workbench/python_shebang_e2e_test.go` |
| 插件后端与语言服务器启动解析 (`backend` + `languageServers`) | 包内 Rust SDK 后端协商 `litheLogging` 0 与 `litheFunctions` 0。解析 `pyrefly lsp` 启动,传入宿主提供的解释器,缺失时使用 Pyrefly 原生检测。 | ✅ 已验证(桌面主线) | ⏳ 归档已校验 | ⏳ 待 CI 与宿主验收 | ⏳ 待 CI 与宿主验收 | 2026-11-20(macOS ARM64,桌面主线) | `backend/src/pyrefly.rs`<br>`scripts/test.mjs`<br>`e2e/host/desktop/internal/workbench/python_support_plugin_e2e_test.go`<br>`e2e/host/desktop/internal/workbench/python_editor_debug_e2e_test.go` |
Expand Down
2 changes: 1 addition & 1 deletion io.github.lithe-idea.python-support/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"description": "Explicit path to the Python interpreter for build, run, and pytest commands. Leave empty to resolve automatically from the Python toolchain (.venv, venv, .conda, VIRTUAL_ENV, PATH, or discovered conda / uv / pyenv installations).",
"default": "",
"effect": "reload",
"page": { "buildSystemID": "python" },
"page": { "languageID": "python" },
"section": "Python Interpreter"
},
{
Expand Down
10 changes: 9 additions & 1 deletion scripts/package/archives.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@ import { existsSync, readdirSync, readFileSync } from "node:fs";
import { resolve } from "node:path";
import { readZipEntries } from "../lib/archive.mjs";
import { backendPath } from "../lib/backend.mjs";
import { ASSET_PREFIX, PACKAGE_ID } from "../package.mjs";
import { ASSET_PREFIX, manifestForPlatform, PACKAGE_ID } from "../package.mjs";

const baseManifest = JSON.parse(readFileSync(`${PACKAGE_ID}/plugin.json`, "utf8"));
const lock = JSON.parse(readFileSync("vendor-lock.json", "utf8"));
const version = baseManifest.version;

test("the Python interpreter override is on the Python language page on every platform", () => {
for (const platform of Object.keys(lock.pyrefly.platforms)) {
const manifest = manifestForPlatform(baseManifest, platform, lock);
const interpreter = manifest.settings.find(({ id }) => id === "pythonExecutable");
assert.deepEqual(interpreter?.page, { languageID: "python" }, platform);
}
});

function checkBackendArchitecture(bytes, platform) {
const arm = platform.endsWith("-arm64");
if (platform.startsWith("windows-")) {
Expand Down
Loading