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
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@ jobs:
# Lithe-core-rust#94), which desktop 0.8.6 is the first release to ship.
# It is published as a stable release so the Store tracker lists it; the
# Store index records its requires and keeps older hosts on 1.0.1.
# v1.3.0 adds a backend that draws the settings regions (settingRegions,
# requires backend 0 and ui 0), which needs the host's plugin views
# (1lck/Lithe-IDEA#2183, pinning Lithe-core-rust#104) that no desktop
# release has yet.
PRERELEASE_TAGS: v0.0.1 v1.0.0 v1.2.0 v1.3.0
# v1.2.0 (type icons, 1lck/Lithe-IDEA#2169) and v1.3.0 (settings regions,
# 1lck/Lithe-IDEA#2183) were published as pre-releases and switched to
# stable once desktop 0.8.7 shipped both host changes.
PRERELEASE_TAGS: v0.0.1 v1.0.0
run: |
prerelease=false
for tag in $PRERELEASE_TAGS; do
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ gopls、go 和 dlv 仍然用你电脑上的。
> [Lithe-core-rust#94](https://github.com/Lithe-IDEA/Lithe-core-rust/pull/94) 的 Core),桌面端 0.8.6 起包含它。
> 1.1.0 作为正式版本发布并收录到 Lithe Store;Store 按版本的 `requires` 给更早的桌面端继续提供 1.0.1。
> 1.2.0 的 Go 构建和 Go 测试类型图标需要能读取插件包图标的桌面端([1lck/Lithe-IDEA#2169](https://github.com/1lck/Lithe-IDEA/pull/2169)),
> 作为预发布版本发布;桌面端 0.8.6 也能安装它,只是显示通用图标。
> 桌面端 0.8.7 起包含它;桌面端 0.8.6 也能安装 1.2.0,只是显示通用图标。
> 1.3.0 在 Go 语言设置页和 Go 构建系统页加了插件自己画的预览区域(`settingRegions`),需要支持插件视图的桌面端
> ([1lck/Lithe-IDEA#2183](https://github.com/1lck/Lithe-IDEA/pull/2183),固定了
> [Lithe-core-rust#104](https://github.com/Lithe-IDEA/Lithe-core-rust/pull/104) 的 Core),还没有桌面端版本包含它,
> 所以作为预发布版本发布、不进 Store。
> [Lithe-core-rust#104](https://github.com/Lithe-IDEA/Lithe-core-rust/pull/104) 的 Core),桌面端 0.8.7 起包含它。
> 1.2.0 和 1.3.0 都作为正式版本发布并收录到 Lithe Store。桌面端 0.8.6 也支持 `ui` 0 和 `backend` 0,
> Store 按 `requires` 挡不住它,但它不认识 `settingRegions`,安装或更新到 1.3.0 会失败,需要先把桌面端更新到 0.8.7 或更新版本。

## 功能

Expand Down Expand Up @@ -286,8 +287,9 @@ Lithe 主仓库的功能矩阵不收录插件能力,改动插件行为时在

3. `Release` 工作流会核对标签与版本一致、打包并发布 Release(说明里附 SHA-256 和
`docs/releases/v<版本>.md`)。`release.yml` 里 `PRERELEASE_TAGS` 列出的版本会标为预发布版本:
目前是只能装进新版桌面端的 `v0.0.1`、依赖宿主 #1954、#1964、#1971 的 `v1.0.0` 、图标依赖宿主 #2169 的 `v1.2.0` 和设置预览依赖宿主 #2183 的 `v1.3.0`;
`v1.0.1` 和 `v1.1.0` 是正式版本。
目前是只能装进新版桌面端的 `v0.0.1` 和依赖宿主 #1954、#1964、#1971 的 `v1.0.0`;
`v1.0.1`、`v1.1.0`、`v1.2.0` 和 `v1.3.0` 是正式版本。`v1.2.0` 和 `v1.3.0` 先以预发布发布,
桌面端 0.8.7 带上它们依赖的 #2169 和 #2183 后改为正式版本。
4. Lithe Store 的自动追踪会发现稳定版本并开合并请求,合并后用户即可在 Lithe 中更新。自动追踪会跳过预发布版本;
需要收录时在 Store 中手工提交条目,并使用已发布 ZIP 的实际 SHA-256。

Expand Down
13 changes: 7 additions & 6 deletions docs/feature-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
| --- | --- | --- | --- | --- |
| `go-support-plugin` | gopls 代码智能、Go Modules 构建、运行与 `go test` | implemented / pending | implemented / pending | 2026-11-15 macOS 宿主端到端测试通过;Windows ARM64、x64 [原生 CI 通过](https://github.com/Lithe-IDEA/lithe-plugin-go/actions/runs/43728078241) |
| `go-debug-delve` | 用用户的 Delve 调试 Go 包 | implemented / pending | partial / pending | 2026-11-15 macOS 宿主端到端测试通过;Windows x64 [原生 CI 通过](https://github.com/Lithe-IDEA/lithe-plugin-go/actions/runs/43728078241);Windows ARM64 上 Delve 不支持 |
| `go-run-configuration-types` | 「运行/调试配置」里的 Go 构建和 Go 测试 | implemented / pending | implemented / pending | 2026-11-18 macOS 宿主端到端测试通过(宿主 a8797ae);Windows 只有命令层面的 `scripts/test.mjs` |
| `go-settings-previews` | Go 语言设置页和 Go 构建系统页里插件自己画的预览 | implemented / pending | implemented / pending | 2026-11-19 macOS 宿主端到端测试通过(宿主 34afcaf11,1lck/Lithe-IDEA#2183);Windows 后端只在 CI 构建,没有在 Windows 版 Lithe 里运行过 |
| `go-run-configuration-types` | 「运行/调试配置」里的 Go 构建和 Go 测试 | implemented / pending | implemented / pending | 2026-11-19 macOS 宿主端到端测试通过(桌面端 0.8.8,宿主 d87f114);Windows 只有命令层面的 `scripts/test.mjs` |
| `go-settings-previews` | Go 语言设置页和 Go 构建系统页里插件自己画的预览 | implemented / pending | implemented / pending | 2026-11-19 macOS 宿主端到端测试通过(桌面端 0.8.8,宿主 d87f114);Windows 后端只在 CI 构建,没有在 Windows 版 Lithe 里运行过 |
| `go-project-generator` | 「新建项目」里的 Go 模块,GOROOT 选择和 Go 版本默认值 | implemented / pending | implemented / pending | 2026-11-15 macOS 宿主集成测试通过;Windows ARM64、x64 [原生 CI 通过](https://github.com/Lithe-IDEA/lithe-plugin-go/actions/runs/43728078241)(模板生成的模块能构建和测试) |

## go-support-plugin
Expand Down Expand Up @@ -156,7 +156,7 @@ Go 构建按“运行种类”执行 `go run` 一个软件包(导入路径或

**依赖的宿主能力**:`runConfigurationTypes`(API-29,Core Lithe-core-rust#94 的表单、保存和 `build.runConfigurationPlan`;
桌面端 1lck/Lithe-IDEA#2148 的「+」菜单、插件字段和翻译、`.lithe/run/plugin/<ID>.toml`、“允许多个实例”);
类型图标需要桌面端 1lck/Lithe-IDEA#2169 读取插件包里的图标,更早的桌面端显示按执行类别的通用图标。
类型图标需要桌面端 0.8.7 或更新版本(1lck/Lithe-IDEA#2169)读取插件包里的图标,桌面端 0.8.6 显示按执行类别的通用图标。

**限制**:

Expand All @@ -176,7 +176,8 @@ Go 1.27.4。`node scripts/e2e-host.mjs` 通过 `TestOfficialGoPluginRunsGoBuildA
类型图标:2026-11-18,macOS(Apple Silicon),本地打包的插件 1.2.0,宿主 `0ffbbd6`(1lck/Lithe-IDEA#2169 分支,
Core `0a15a98`),Go 1.27.4。`node scripts/e2e-host.mjs` 的三个 workbench 测试和五个 projectgen 测试全部通过;
`TestOfficialGoPluginRunsGoBuildAndGoTestConfigurations` 另外检查两种类型都读到包里的浅色和深色图标、两套配色不同。
#2169 合入前 `e2e/host/lithe-host.json` 仍固定在 `a8797ae`,那里没有读取包图标的代码,新增的图标检查无法编译。
2026-11-19 `e2e/host/lithe-host.json` 改固定到桌面端 0.8.8 的 `d87f114` 后,用 1.3.0 发布包重跑,四个 workbench 测试和五个 projectgen
测试全部通过,图标检查也在其中。

**验证方法**(macOS):

Expand Down Expand Up @@ -267,14 +268,14 @@ Core 6477e9a),Homebrew 的 Go 1.27.4。在宿主检出里运行 `internal/pr
- `e2e/host/desktop/internal/workbench/official_go_plugin_settings_view_e2e_test.go`:经设置窗口自己的设置来源启动安装包里的后端,
用中英文打开两个区域并发草稿事件,由 Core 校验每次回答。

**依赖的宿主能力**:插件视图和设置区域(1lck/Lithe-IDEA#2183,Core Lithe-core-rust#104)。画布不写 `pan` 时宿主按
**依赖的宿主能力**:插件视图和设置区域(1lck/Lithe-IDEA#2183,Core Lithe-core-rust#104),桌面端 0.8.7 起包含。桌面端 0.8.6 同样支持 `ui` 0 和 `backend` 0,Store 按 `requires` 挡不住它,但它不认识 `settingRegions`,装 1.3.0 会失败。画布不写 `pan` 时宿主按
`min(宽/viewBox 宽, 高/viewBox 高)` 从左上角缩放(#2183 的 34afcaf11);场景按设置窗口最窄时区域的宽度画(语言页 610、构建系统页 340),
宽窗口里原样显示。

**限制**:代码按 SF Mono 的 7pt 字宽一个字符一个节点排版,选区、光标、输入框和波浪线才能对准字符;Windows 上 Consolas 的字更窄,
代码间距会比宿主自己画的略宽。

**最近验证**:2026-11-19,macOS(Apple Silicon),`go-support-1.3.0-darwin.zip`,宿主 `34afcaf11`(1lck/Lithe-IDEA#2183 的分支提交)。
**最近验证**:2026-11-19,macOS(Apple Silicon),`go-support-1.3.0-darwin.zip` 发布包,宿主 `d87f114`(桌面端 0.8.8,包含 #2183)。
`TestOfficialGoPluginDrawsItsSettingsRegions` 通过:后端由宿主启动,两个区域在中英文下各画出一张画布,viewBox 宽度分别是 610 和 340,
标题和标签是对应语言,草稿让预览标出未应用的修改、让构建系统页的 `go` 路径一步变成“使用中”,安装目录的文件不变。
另用宿主无头界面在最小宽度(900)和较宽窗口(1300)下截了中英文、浅色和深色、默认值和全部开启的 32 张图检查排版。没有做手工验收。
Expand Down
6 changes: 3 additions & 3 deletions docs/releases/v1.2.0.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
1.2.0 给「运行/调试配置」里的 Go 构建和 Go 测试换上各自的图标:Go 地鼠加构建标记或测试标记,浅色和深色外观各有一套。这个版本以预发布版本发布。
1.2.0 给「运行/调试配置」里的 Go 构建和 Go 测试换上各自的图标:Go 地鼠加构建标记或测试标记,浅色和深色外观各有一套。

功能:
- Go 构建的图标是 Go 地鼠,右上角加构建用的锤子;Go 测试的图标是 Go 地鼠,右上角加红绿两色的测试标记。深色外观换用对应的深色配色。
- 图标显示在「+」菜单、对话框左侧的配置树和标题栏的运行配置列表里,替换原来按执行类别显示的通用图标。

已知限制:
- 显示这两个图标需要支持插件包图标的桌面端(1lck/Lithe-IDEA#2169)。桌面端 0.8.6 也能安装这个版本,两种配置照常使用,图标仍是通用图标。
- 显示这两个图标需要桌面端 0.8.7 或更新版本(含 1lck/Lithe-IDEA#2169)。桌面端 0.8.6 也能安装这个版本,两种配置照常使用,图标仍是通用图标。

验证:
- 在 macOS 上用包含 1lck/Lithe-IDEA#2169 的桌面端跑宿主端到端测试:两种配置都读到了包里的浅色和深色图标,运行结果和保存的配置与 1.1.0 相同,插件安装目录不被写入。
Expand All @@ -15,5 +15,5 @@
权限:不变。

兼容性:
- 清单只给两种配置的图标加了深色文件,桌面端 0.8.6 可以安装。显示图标需要 1lck/Lithe-IDEA#2169。
- 清单只给两种配置的图标加了深色文件,桌面端 0.8.6 可以安装。显示图标需要桌面端 0.8.7 或更新版本。
- 图标改编自 JetBrains IntelliJ Community 的图标(Apache-2.0),出处和改动说明见包里的 `icons/NOTICE`。
4 changes: 2 additions & 2 deletions docs/releases/v1.3.0.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
1.3.0 给 Go 的两个设置页加上插件自己画的预览,改设置时直接看到效果。这个版本以预发布版本发布。
1.3.0 给 Go 的两个设置页加上插件自己画的预览,改设置时直接看到效果。

功能:
- 「设置 › 语言 › Go」顶部有四张预览卡片:悬停文档显示多少内容、补全是否填参数占位符、gofumpt 格式化前后的代码、Staticcheck 多查出的问题。
- 「构建工具 › Go」页画出 Lithe 查找 go 程序的顺序;设置了 go 路径时只有这一步“使用中”。
- 改了还没应用的选项会先在预览里显示,并标出“含未应用的修改”。预览跟随界面语言和浅色、深色外观。

已知限制:
- 需要支持插件视图的桌面端(1lck/Lithe-IDEA#2183)。更早的桌面端不认识 `settingRegions`,无法安装这个版本,Store 继续提供 1.1.0。
- 需要桌面端 0.8.7 或更新版本(含插件视图 1lck/Lithe-IDEA#2183)。桌面端 0.8.6 不认识 `settingRegions`,安装或更新到这个版本会失败,请先把桌面端更新到最新版本。
- Windows 上代码的字距比 Lithe 自己画的略宽:预览按 SF Mono 的字宽排版代码,选区和波浪线才能对准字符。

验证:
Expand Down
2 changes: 1 addition & 1 deletion e2e/host/lithe-host.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"repository": "https://github.com/1lck/Lithe-IDEA.git",
"revision": "34afcaf11016c052b739ee2b9f09eaa26e21ba0a",
"revision": "d87f1142ae5d9b6196e324409730fba4aad27664",
"packages": {
"./internal/projectgen": "^TestGoPlugin",
"./internal/workbench": "^TestOfficialGoPlugin(BuildsAndServesAModule|DebugsEachProjectOfAWorkspaceWithDelve|RunsGoBuildAndGoTestConfigurations|DrawsItsSettingsRegions)$"
Expand Down
Loading