Repository navigation
feat: Go 构建和 Go 测试换成各自的图标(1.2.0 预发布) - #20
Merged
Merged
Conversation
两种运行配置类型的图标从共用的 icons/go.svg 换成 Go 地鼠加构建标记、 Go 地鼠加测试标记,浅色和深色外观各一份(改编自 IntelliJ Community, Apache-2.0,出处见 icons/NOTICE)。显示需要读取插件包图标的桌面端 (1lck/Lithe-IDEA#2169),所以 1.2.0 作为预发布版本发布。 宿主 e2e 新增对两种类型浅色、深色图标的检查。
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
「运行/调试配置」里 Go 构建和 Go 测试原来共用
icons/go.svg,宿主也只按执行类别显示通用图标。#2169 让宿主绘制插件包里的类型图标(浅色、深色两份),本 PR 给两种类型各换一个 GoLand 风格的图标:Go 地鼠加构建标记、Go 地鼠加测试标记。plugin.jsonbuild(Go 构建)的icon改为icons/go-build.svg,darkPath为icons/go-build-dark.svg。test(Go 测试)的icon改为icons/go-test.svg,darkPath为icons/go-test-dark.svg。mode: original,按文件自身配色绘制。icons/go-build.svg、go-build-dark.svg:Go 地鼠缩小放到左下,构建锤子缩小放到右上,合成一个 16×16 图标。go-test.svg、go-test-dark.svg:Go 地鼠在左下,红绿两色的测试标记在右上。language/go.svg、expui/build/build.svg、expui/runConfigurations/junitTestMark.svg(Apache-2.0)。icons/NOTICE写明来源文件、commit、版权和改动;icons/LICENSE-Apache-2.0.txt是许可证全文。不带后缀的用浅色源文件配色,-dark用_dark源文件配色。icons/go.svg保留不变:清单里已不再引用它,但它是 Lithe Store 列表用的插件图标(feat: 新增 Lithe Store 列表使用的 go 语言图标 #1 加入)。e2e/host/)official_go_plugin_run_types_e2e_test.go:新增检查,两种类型都能从安装的包里读到浅色和深色图标,两套配色不同。lithe-host.json:示例包名改为dist/go-support-1.2.0-darwin.zip。revision还固定在a8797ae,那里没有 #2169 的runTypePackageIcon,新增检查无法编译。#2169 合入后要把它升到包含 #2169 的 main commit,然后再把本 PR 标为 ready。.github/workflows/release.yml:PRERELEASE_TAGS加上v1.2.0。图标依赖还没发版的宿主能力,按版本规则作为预发布版本发布。README.mdv1.2.0列入预发布版本。docs/feature-matrix.md(go-run-configuration-types)icons/NOTICE。docs/releases/v1.2.0.md:发布说明。验证
macOS(Apple Silicon),Go 1.27.4:
node scripts/package.mjs:通过,生成dist/go-support-1.2.0-{darwin,windows}.zip。node --test scripts/package/*.test.mjs:2/2 通过。node scripts/test.mjs:通过。LITHE_TEST_GO_PLUGIN_ARCHIVE=<绝对路径>/dist/go-support-1.2.0-darwin.zip node scripts/e2e-host.mjs --source <Lithe 检出> --ref fix/run-config-dialog-polish,宿主为 #2169 分支0ffbbd6(Core0a15a98):没做的
lithe-host.json的revision要等 #2169 合入后再升,在此之前本 PR 保持 Draft。