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: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ jobs:
# desktop release has yet.
# v1.0.1 adds the Windows archive on top of 1.0.0 and needs the same host,
# but is published as a stable release so the Store tracker lists it.
# v2.0.0 declares buildSystems runConfigurationTypes (1lck/Lithe-IDEA#2148,
# Lithe-core-rust#94), which no desktop release has yet (desktop-v0.8.5
# pins Core 5c48a67, before #94).
PRERELEASE_TAGS: v0.0.1 v1.0.0 v2.0.0
# v1.1.0 declares buildSystems runConfigurationTypes (1lck/Lithe-IDEA#2148,
# 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.
PRERELEASE_TAGS: v0.0.1 v1.0.0
run: |
prerelease=false
for tag in $PRERELEASE_TAGS; do
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
> ([1lck/Lithe-IDEA#1971](https://github.com/1lck/Lithe-IDEA/pull/1971))。1.0.1 起作为正式版本发布并收录到 Lithe Store;
> 没有这些能力的桌面端会从 Store 装到 0.0.1。语言服务器的 `indexingExclusions` 声明需要固定了包含
> [Lithe-core-rust#68](https://github.com/Lithe-IDEA/Lithe-core-rust/pull/68) 的 Core 的桌面端,
> 更早的桌面端不认识这个字段,会拒绝整份清单。2.0.0 的 Go 构建和 Go 测试运行配置需要支持插件声明运行配置类型的桌面端
> 更早的桌面端不认识这个字段,会拒绝整份清单。1.1.0 的 Go 构建和 Go 测试运行配置需要支持插件声明运行配置类型的桌面端
> ([1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148),固定了
> [Lithe-core-rust#94](https://github.com/Lithe-IDEA/Lithe-core-rust/pull/94) 的 Core),还没有桌面端发布版本包含它,
> 所以 2.0.0 是预发布版本;更早的桌面端会拒绝安装 2.0.0,继续用 Store 里的 1.0.1。
> [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。

## 功能

Expand Down Expand Up @@ -248,7 +248,7 @@ CI 在 macOS、Windows x64 和 Windows ARM64 上跑这个脚本,Windows 上测

```bash
node scripts/package.mjs
LITHE_TEST_GO_PLUGIN_ARCHIVE="$PWD/dist/go-support-2.0.0-darwin.zip" node scripts/e2e-host.mjs
LITHE_TEST_GO_PLUGIN_ARCHIVE="$PWD/dist/go-support-1.1.0-darwin.zip" node scripts/e2e-host.mjs
```

插件包路径要写绝对路径。脚本把固定版本的宿主(只取 `desktop/` 和 `scripts/`)检出到 `.artifacts/lithe-host`,
Expand All @@ -263,9 +263,9 @@ Lithe 主仓库的功能矩阵不收录插件能力,改动插件行为时在

## 发布新版本

1. 按语义化版本修改 `io.github.lithe-idea.go-support/plugin.json` 的 `version`:只修 Bug 升修订号,
加功能升次版本号,有不兼容的变化升主版本号。要求能装上一版的宿主没有的能力或 Core 版本,也算不兼容;
1.0.0 以下同样适用,0.y.z 有不兼容的变化时升到 1.0.0。合入 `main`。
1. 修改 `io.github.lithe-idea.go-support/plugin.json` 的 `version`:修复升修订号(1.1.0 → 1.1.1),
加功能升次版本号(1.1.0 → 1.2.0);只有特别大的革新才升主版本号,由维护者决定。新功能要求还没有发布的
宿主能力或 Core 版本时,照样升次版本号,并作为预发布版本发布(见第 3 步)。合入 `main`。
2. 推送同名标签:

```bash
Expand All @@ -274,8 +274,7 @@ Lithe 主仓库的功能矩阵不收录插件能力,改动插件行为时在

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

Expand Down
4 changes: 2 additions & 2 deletions docs/feature-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Go 构建按“运行种类”执行 `go run` 一个软件包(导入路径或

| 平台 | 实现 | 验证 | 说明 |
| --- | --- | --- | --- |
| macOS | implemented | pending | 需要支持 `runConfigurationTypes` 的桌面端(1lck/Lithe-IDEA#2148,Core Lithe-core-rust#94);旧宿主不认识这个字段,会拒绝安装本版本 |
| macOS | implemented | pending | 需要支持 `runConfigurationTypes` 的桌面端 0.8.6 或更新版本(1lck/Lithe-IDEA#2148,Core Lithe-core-rust#94);Store 给更早的桌面端继续提供 1.0.1 |
| Windows | implemented | pending | 命令与平台无关,文件和目录以绝对路径传给 `go.exe`;还没有在 Windows 版 Lithe 里跑过 |

**证据**:
Expand All @@ -161,7 +161,7 @@ Go 构建按“运行种类”执行 `go run` 一个软件包(导入路径或
名称不会按所选软件包自动生成;类型图标按执行类别显示宿主图标,不显示插件包里的 Go 图标。
- 还没有的字段:输出目录、构建后运行、模拟终端、重定向输入、以 sudo 运行、模块、测试框架、使用所有自定义构建标记。

**最近验证**:2026-11-18,macOS(Apple Silicon),插件 2.0.0 发布包,宿主 `a8797ae`(1lck/Lithe-IDEA main,包含 #2148),
**最近验证**:2026-11-18,macOS(Apple Silicon),插件 1.1.0 发布包,宿主 `a8797ae`(1lck/Lithe-IDEA main,包含 #2148),
Go 1.27.4。`node scripts/e2e-host.mjs` 通过 `TestOfficialGoPluginRunsGoBuildAndGoTestConfigurations`:两种类型以“Go 构建”
“Go 测试”列出;在对话框里新建 Go 构建,运行种类默认软件包、只显示软件包路径,填 `./cmd/echo` 和程序参数 `one two`
后运行,输出 `echo: one|two`;新建 Go 测试,切到目录后显示目录、隐藏软件包路径,填项目根目录、模式 `^TestGreet$` 和
Expand Down
4 changes: 2 additions & 2 deletions docs/releases/v2.0.0.md → docs/releases/v1.1.0.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2.0.0 在「运行/调试配置」里加入 Go 构建和 Go 测试两种运行配置,并把 gopls 的索引排除改为由清单声明。这个版本需要还没有发布的新版桌面端,所以是预发布版本。
1.1.0 在「运行/调试配置」里加入 Go 构建和 Go 测试两种运行配置,并把 gopls 的索引排除改为由清单声明。这个版本需要桌面端 0.8.6 或更新版本。

功能:
- Go 构建:点「运行/调试配置」的「+」,选 Go 构建。运行种类可选软件包、文件或目录,执行 `go run`;软件包填导入路径(如 `example.com/app/cmd/server`)或相对路径(如 `./cmd/server`)。“Go 工具实参”放在 `go run` 后面,例如 `-mod=vendor`;程序参数传给程序。
Expand All @@ -19,5 +19,5 @@
权限:不变。

兼容性:
- 需要支持插件声明运行配置类型的桌面端(1lck/Lithe-IDEA#2148,固定了 Lithe-core-rust#94 的 Core)。已发布的桌面端 0.8.5 及更早版本都不包含它,会拒绝安装 2.0.0;请继续使用 1.0.1。
- 需要支持插件声明运行配置类型的桌面端 0.8.6 或更新版本(1lck/Lithe-IDEA#2148,固定了 Lithe-core-rust#94 的 Core)。桌面端 0.8.5 及更早版本在 Lithe Store 里继续得到 1.0.1。
- `indexingExclusions` 需要 Lithe-core-rust#68,桌面端 0.8.5 已包含。
2 changes: 1 addition & 1 deletion e2e/host/lithe-host.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"./internal/workbench": "^TestOfficialGoPlugin(BuildsAndServesAModule|DebugsEachProjectOfAWorkspaceWithDelve|RunsGoBuildAndGoTestConfigurations)$"
},
"requiredEnvironment": {
"LITHE_TEST_GO_PLUGIN_ARCHIVE": "go-support-<version>-darwin.zip to install, for example dist/go-support-2.0.0-darwin.zip"
"LITHE_TEST_GO_PLUGIN_ARCHIVE": "go-support-<version>-darwin.zip to install, for example dist/go-support-1.1.0-darwin.zip"
},
"repositoryEnvironment": {
"LITHE_PLUGIN_GO_DIR": "io.github.lithe-idea.go-support"
Expand Down
2 changes: 1 addition & 1 deletion io.github.lithe-idea.go-support/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"schemaVersion": 0,
"id": "io.github.lithe-idea.go-support",
"displayName": "Go Support",
"version": "2.0.0",
"version": "1.1.0",
"pluginAPIVersion": 0,
"requires": {
"buildSystems": 0,
Expand Down
Loading