Repository navigation
feat: 声明 Go 构建和 Go 测试运行配置类型(2.0.0 预发布) - #18
Merged
Merged
Conversation
- plugin.json:buildSystems 的 go 加 runConfigurationTypes:build(go run 软件包/文件/目录, Go 工具实参)和 test(go test 软件包或 <目录>/...,模式作 -run,Go 工具实参); requires 加 runConfigurationTypes 0;版本 2.0.0。 - l10n/zh-Hans.json:两种类型的名称、说明、字段标题、说明、占位符和选项。 - scripts/test.mjs:按契约规则展开字段,用真实的 go 跑软件包、文件、目录的 Go 构建和 软件包、目录、模式过滤的 Go 测试。 - e2e:新增 TestOfficialGoPluginRunsGoBuildAndGoTestConfigurations,在对话框里新建并运行两种配置; 宿主固定到 1lck/Lithe-IDEA main a8797ae(含 #2148);构建任务和运行入口的等待改为看各自执行的 Run 窗口会话(宿主 #2119 起运行并行,状态行不再代表某次执行)。 - README、功能矩阵、发布说明 v2.0.0;release.yml 把 v2.0.0 列为预发布。
xiaoyumuxi
marked this pull request as ready for review
November 18, 2026 08:57
8 of 11 tasks
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
改动说明 / What changes
宿主 #2148 让插件用
buildSystems[].runConfigurationTypes(API-29)声明自己的运行配置类型。本 PR 让 Go Support 声明两种类型,界面参照 GoLand 的 Go Build 和 Go Test。先按现有契约出一版,没有改 Core 或宿主。plugin.jsonrequires给更早的桌面端继续提供 1.0.1。README 的版本规则同步改为:修复升修订号,加功能升次版本号,只有特别大的革新才升主版本号(原来写的是不兼容就升主版本号)。requires加runConfigurationTypes: 0。build(Go 构建,execution: application)visibleWhen只显示对应的一项。go run ${optionArguments} <Go 工具实参> <软件包|文件|目录> ${userArguments}。test(Go 测试,execution: task)./...。<目录>/...。-run <模式>传入。go test ${optionArguments} <Go 工具实参> [-run 模式] <软件包|目录/...> ${userArguments}。icons/go.svg。l10n/zh-Hans.json:两种类型的名称(Go 构建、Go 测试)、说明、字段标题、说明、占位符和选项名。scripts/test.mjs:按契约规则展开字段,用真实的 go 跑以下四项:-mod=mod和含空格的程序参数;./...的 Go 测试,检查失败的测试会让它失败。e2e/host/)official_go_plugin_run_types_e2e_test.go:装真实插件包,在「运行/调试配置」对话框里新建并运行两种配置。echo: one|two。.lithe/run/plugin/io.github.lithe-idea.go-support.toml,插件安装目录不变。lithe-host.json固定到宿主 maina8797ae(含 #2148),把新测试加入 workbench 的正则。official_go_plugin_e2e_test.go的runBuildTaskToEnd和runTargetEntryToEnd。宿主 #2119 起运行可以并行,构建窗口的状态行不再对应某一次执行,运行入口也不再占用build.operation。现在改为等每次执行自己结束,从它的 Run 窗口会话读结果和输出。README.md:新增“运行配置”一节和功能表一行。兼容性写明 1.1.0 需要包含 #2148 的桌面端(0.8.6 起)、作为正式版本收录到 Store;e2e 示例改用 1.1.0 的包;发布一节把v1.1.0列为正式版本。docs/feature-matrix.md:新增go-run-configuration-types,写明证据、依赖的宿主能力、限制、最近验证和验收步骤。docs/releases/v1.1.0.md:发布说明,包含已在 main 上但还没发版的indexingExclusions(feat: gopls 的索引排除改由清单声明 indexingExclusions #17)。.github/workflows/release.yml:PRERELEASE_TAGS不加v1.1.0,注释写明它需要 0.8.6 起的桌面端、作为正式版本发布的原因。和 GoLand 还不一样的地方(后续再优化)
以下差异需要改 Core 或宿主,这一版没有动:
验证 / Verification
node scripts/package.mjsnode --test scripts/package/*.test.mjsLITHE_TEST_INSTALL=0 node scripts/test.mjs(Go 1.27.4)validate-index.mjs)LITHE_TEST_GO_PLUGIN_ARCHIVE=$PWD/dist/go-support-1.1.0-darwin.zip node scripts/e2e-host.mjs(宿主 a8797ae)TestOfficialGoPluginRunsGoBuildAndGoTestConfigurations和改过等待方式的TestOfficialGoPluginBuildsAndServesAModule还没做的:
pending。scripts/test.mjs,没有在 Windows 版 Lithe 里运行过。发布
合入后推
v1.1.0标签发正式版本,Store 的自动追踪会收录它;桌面端 0.8.5 及更早版本按requires继续得到 1.0.1。