From 94b699d28bd637ecb2dfd41dff3411e8a09d6931 Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Fri, 20 Nov 2026 07:59:44 +0800 Subject: [PATCH 1/2] release: prepare desktop 0.8.9 with completed search dependencies --- desktop/go.mod | 2 +- desktop/go.sum | 4 +- desktop/viva.toml | 2 +- docs/releases/v0.8.9.md | 131 ++++++++++++++++++++++++++ scripts/desktop/build-desktop-core.sh | 2 +- 5 files changed, 136 insertions(+), 5 deletions(-) create mode 100644 docs/releases/v0.8.9.md diff --git a/desktop/go.mod b/desktop/go.mod index eb30c2c51..24ce4d43c 100644 --- a/desktop/go.mod +++ b/desktop/go.mod @@ -20,4 +20,4 @@ require ( github.com/godbus/dbus/v5 v5.2.2 // indirect ) -replace github.com/vivaui/viva => github.com/Lithe-IDEA/viva v0.6.6-0.20261119032517-1c0d556f2ef7 +replace github.com/vivaui/viva => github.com/Lithe-IDEA/viva v0.6.6-0.20261119170518-c7bffddf8794 diff --git a/desktop/go.sum b/desktop/go.sum index 57a14b634..2bf4b3cfb 100644 --- a/desktop/go.sum +++ b/desktop/go.sum @@ -1,5 +1,5 @@ -github.com/Lithe-IDEA/viva v0.6.6-0.20261119032517-1c0d556f2ef7 h1:6Z6Vm7AuSOafUVJlikd5hGoiU4wIebYPUgT5kcEeYw8= -github.com/Lithe-IDEA/viva v0.6.6-0.20261119032517-1c0d556f2ef7/go.mod h1:e9In6+J77G7B9ow4enZ2FSOFh7U3q4cQ5iJr3Qn/Olk= +github.com/Lithe-IDEA/viva v0.6.6-0.20261119170518-c7bffddf8794 h1:mK/BMw9S2mzS7yZ46yBpxT1efXnmMeBG+i74nyk7o1k= +github.com/Lithe-IDEA/viva v0.6.6-0.20261119170518-c7bffddf8794/go.mod h1:e9In6+J77G7B9ow4enZ2FSOFh7U3q4cQ5iJr3Qn/Olk= github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s= github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE= github.com/danieljoos/wincred v1.2.3 h1:v7dZC2x32Ut3nEfRH+vhoZGvN72+dQ/snVXo/vMFLdQ= diff --git a/desktop/viva.toml b/desktop/viva.toml index fbcb03b85..da0563e2c 100644 --- a/desktop/viva.toml +++ b/desktop/viva.toml @@ -9,7 +9,7 @@ name = "Lithe Desktop" # A separate identity from the SwiftUI client (app.lithe.desktop), so both can be installed # while this client grows. id = "app.lithe.viva" -version = "0.8.8" +version = "0.8.9" executable = "lithe" package = "./cmd/lithe" # The full-bleed square of the SwiftUI client's icon; viva package shapes it into the macOS tile. diff --git a/docs/releases/v0.8.9.md b/docs/releases/v0.8.9.md new file mode 100644 index 000000000..059edbbc6 --- /dev/null +++ b/docs/releases/v0.8.9.md @@ -0,0 +1,131 @@ +## 中文 + +Lithe Desktop 0.8.9 补齐项目搜索、类型查找和搜索设置,整理结果布局,并改进构建选项、工具链与编辑器提示。 + +### 下载 + +- [项目主页](https://github.com/1lck/Lithe-IDEA) +- [macOS Apple Silicon DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.9/lithe-0.8.9-darwin-arm64.dmg) +- [macOS Intel DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.9/lithe-0.8.9-darwin-amd64.dmg) +- [Windows x64 安装程序](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.9/lithe-0.8.9-windows-amd64-setup.exe) +- [全部下载文件与 SHA-256 校验文件](https://github.com/1lck/Lithe-IDEA/releases/tag/desktop-v0.8.9) + +### 重点更新 + +本次更新让搜索更完整、结果更清楚,并让构建和编辑操作更方便。 + +#### ✨ 新功能 + +- 项目搜索支持分页、按文件分组折叠、完整匹配计数和未保存内容。 +- 搜索支持项目、模块、目录和自定义范围,可临时包含忽略文件、生成目录及项目内符号链接。 +- 随处搜索支持空格分词、路径缩写、通配符和文件名后接行号,“全部”同时显示文本结果。 +- “类型”和“符号”按需启动语言服务,无需先打开文件;搜索与替换文件大小可在设置中调整。 +- 编辑器显示代码操作、参数信息和内联提示,补全候选完整展示名称与签名。 +- 构建窗口显示插件声明的快捷开关、运行环境和翻译后的选项,并可浏览路径及覆盖工具实际值。 +- 插件工具链提供方可参与版本和安装解析,受管运行环境按需准备,测试发现可使用声明的命令。 +- 打开项目时先确认工作区信任,并识别可运行的启动类。 + +#### ⚡ 改进 + +- 项目搜索首屏不再等待完整内容索引,完整计数在后台完成。 +- 搜索统一字体、压缩结果行距、对齐行列号,并在文件名旁显示匹配数。 +- 搜索与编辑器统一处理非 UTF-8 文本;替换保留原编码、BOM 和换行符。 +- 构建选项提供说明与路径覆盖提示,插件不再提供的旧选项会明确提醒。 + +#### 🛠 修复 + +- 修复紧凑搜索列表大幅滚动到底部时出现空白的问题。 +- 修复插件画布宽度不准确,以及窗口调整大小后未通知插件的问题。 +- 修复在非仓库目录中查询根 Git 引用引起的错误。 + +### 升级说明 + +- 已安装版本可从标题栏更新入口或“设置 → 关于”检查更新;也可下载完整安装包。 +- macOS:打开对应芯片的 DMG,将 `Lithe Desktop.app` 拖入“应用程序”。 +- Homebrew:配方更新后运行 `brew update && brew upgrade --cask lithe`。 +- Windows:运行 x64 安装程序;Windows 0.8.0 用户需要手动下载安装。 +- Linux:全部下载文件中提供 x64、ARM64 的 DEB、RPM 和 tar.gz。 + +### 兼容性与已知问题 + +- macOS 最低 13.0;Windows 提供 x64 包;Linux 需要兼容的运行库和图形环境。 +- 类型与符号结果依赖已安装、已启用且支持工作区符号查询的语言服务。 +- 符号链接只跟随当前项目内部目标,跳过循环和外部目标;手动排除目录仍生效。 +- Windows 搜索原生窗口未在本机验收;功能矩阵保留待验证状态。 +- 本次按发布安排保留现有 Viva 基线,只加入列表滚动修复,未纳入待同步的 65 个上游提交。 +- macOS 使用临时签名且未公证,Windows 安装包没有发行者签名,系统可能显示安全提示。 + +如果 macOS 提示无法打开 `Lithe Desktop.app`,请在“应用程序”中按住 Control 点按应用并选择“打开”;如果仍被阻止,可执行 `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"`。旧版 `Lithe.app` 使用 `xattr -dr com.apple.quarantine /Applications/Lithe.app`。仅对可信来源的应用使用。 + +[查看完整变更](https://github.com/1lck/Lithe-IDEA/compare/desktop-v0.8.8...desktop-v0.8.9) + +--- + +## English + +Lithe Desktop 0.8.9 expands project search, type lookup and search settings, cleans up result layouts, and improves build options, toolchains and editor assistance. + +### Downloads + +- [Project homepage](https://github.com/1lck/Lithe-IDEA) +- [macOS Apple Silicon DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.9/lithe-0.8.9-darwin-arm64.dmg) +- [macOS Intel DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.9/lithe-0.8.9-darwin-amd64.dmg) +- [Windows x64 installer](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.9/lithe-0.8.9-windows-amd64-setup.exe) +- [All downloads and SHA-256 checksums](https://github.com/1lck/Lithe-IDEA/releases/tag/desktop-v0.8.9) + +### Highlights + +This release makes search more complete and readable, and simplifies build and editing workflows. + +#### ✨ New features + +- Project search supports pagination, collapsible file groups, complete match counts and unsaved content. +- Search project, module, directory or custom scopes, optionally including ignored files, generated directories and internal symbolic links. +- Search Everywhere supports space-separated words, abbreviated paths, wildcards and filename line suffixes; All also includes text results. +- Types and Symbols start language services on demand, without opening files first; search and replacement file limits are configurable. +- The editor shows code actions, parameter information and inline hints, plus full completion names and signatures. +- Build windows show plugin switches, execution environments and translated options, with path browsing and explicit overrides of actual tool values. +- Plugin toolchain providers participate in version and installation resolution; managed runtimes prepare on demand and declared commands can discover tests. +- Opening a project confirms workspace trust and discovers runnable entry classes. + +#### ⚡ Improvements + +- Project search shows its first page without waiting for a full content index; complete counts finish in the background. +- Search uses consistent fonts, compact rows, aligned line positions and match counts beside filenames. +- Search and the editor handle non-UTF-8 text consistently; replacement preserves encoding, BOM and line endings. +- Build options include explanations and path override guidance, and warn when plugins no longer provide saved options. + +#### 🛠 Fixes + +- Fixed blank results after scrolling compact search lists to the end in a large wheel movement. +- Fixed inaccurate plugin canvas widths and missing resize notifications after window size changes. +- Fixed root Git reference queries in folders outside a repository. + +### Upgrade instructions + +- Check for updates from the title bar or Settings → About, or download a full package. +- macOS: open the DMG for your processor and drag `Lithe Desktop.app` to Applications. +- Homebrew: run `brew update && brew upgrade --cask lithe` once the cask update is available. +- Windows: run the x64 installer; Windows 0.8.0 users must download and install manually. +- Linux: All downloads includes DEB, RPM and tar.gz packages for x64 and ARM64. + +### Compatibility and known issues + +- macOS requires 13.0 or newer; Windows packages target x64; Linux requires compatible libraries and a graphical environment. +- Type and symbol results require an installed, enabled language service that supports workspace symbol queries. +- Symbolic links follow targets inside the current project only, skipping cycles and external targets; manual exclusions still apply. +- Native Windows search windows were not verified locally; the feature matrix retains pending verification. +- This release retains the existing Viva baseline with the list scrolling fix; 65 upstream commits awaiting synchronization are excluded. +- macOS packages use ad hoc signing without notarization; Windows installers have no publisher signature and may trigger system prompts. + +If macOS cannot open `Lithe Desktop.app`, Control-click it in Applications and choose Open. If it remains blocked, run `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"`. For the older `Lithe.app`, use `xattr -dr com.apple.quarantine /Applications/Lithe.app`. Use these commands only for an app from a source you trust. + +[Full changelog](https://github.com/1lck/Lithe-IDEA/compare/desktop-v0.8.8...desktop-v0.8.9) + +### 🙌 感谢贡献者 + +感谢 [@1lck](https://github.com/1lck)、[@Mucheen](https://github.com/Mucheen) 和 [@xiaoyumuxi](https://github.com/xiaoyumuxi)。 + +### 🙌 Contributors + +Thanks to [@1lck](https://github.com/1lck), [@Mucheen](https://github.com/Mucheen) and [@xiaoyumuxi](https://github.com/xiaoyumuxi). diff --git a/scripts/desktop/build-desktop-core.sh b/scripts/desktop/build-desktop-core.sh index 37f78c3a5..aac25baae 100755 --- a/scripts/desktop/build-desktop-core.sh +++ b/scripts/desktop/build-desktop-core.sh @@ -286,7 +286,7 @@ PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git" # rows), #13, #8, #7, #6 and #4. # Search pages, unsaved snapshots, source identities and budgets from Core #125, # merged on top of the build-option changes through Core #124. -PINNED_CORE_REVISION="77aa46ab1f5357e64ea5ba7e25fe3f2184504518" +PINNED_CORE_REVISION="9399f16312df63efdf6f56aaeea5024df82cbe04" PROFILE="debug" while [[ $# -gt 0 ]]; do case "$1" in From 1353ef2eed8a4bb4525585764fbcf290f53c2554 Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Fri, 20 Nov 2026 08:04:09 +0800 Subject: [PATCH 2/2] docs(search): record release dependencies and scrolling verification --- shared/platform-feature-matrix/features/search-project.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/platform-feature-matrix/features/search-project.json b/shared/platform-feature-matrix/features/search-project.json index 8e9c1819c..b747b463a 100644 --- a/shared/platform-feature-matrix/features/search-project.json +++ b/shared/platform-feature-matrix/features/search-project.json @@ -30,7 +30,7 @@ ] }, "owner": "Search", - "verification": "使用同一项目和查询 fixture 对比命中路径、行号、列号和结果排序;在 macOS 深浅主题检查搜索框输入、焦点与失焦、工具按钮及文件类型图标;点击侧栏 Search 时第一个输入框不自动获得焦点,使用 Cmd+Shift+F 时仍获得焦点。 Search 查询与文件掩码、Database 连接搜索、Redis Key pattern 和 Nacos 配置/服务搜索均直接使用 Git Log 同源的全局唯一 LitheSearchFieldStyle;在深浅主题核对 36pt 外框、30pt 可见高度、4pt 圆角、1pt 常态边框、2pt 聚焦边框、3pt 外留白及 13pt 常规文字和提示色,确认无局部背景或原生边框叠加,并保留搜索、清除与键盘提交行为。 使用原生 NSHostingView 渲染验证共享 LitheSearchTextField 的占位文字在深浅主题均为 IDEA Component.infoForeground 对应的 #73767C、13pt 常规字重;空输入框单独绘制占位文字,避免 SwiftUI 原生 prompt 替换其颜色与字重,有内容时占位文字消失并保留原生编辑和主文字色。 中文输入法组词期间,即使绑定文本仍为空,共享 LitheSearchTextField 占位文字立即隐藏;取消组词或删空后恢复,确认中文后仍隐藏。原生 setMarkedText 回归覆盖明暗主题和两个输入框互不影响;保留焦点、键盘提交、搜索/过滤语义及占位字号颜色。原生背景观察视图卸载和移出窗口时清理通知,匹配当前窗口的字段编辑器及所属输入区域,不修改业务绑定。 共享搜索字段未聚焦时悬停立即显示文本编辑光标,离开或禁用时恢复箭头;保留中文组词、焦点及键盘动作。 macOS 项目树文件、目录、项目根和多选右键菜单均显示 Find in Files,调用已有项目范围搜索并聚焦查询框;验证编辑器选中文字预填与现有搜索规则。该菜单入口沿用整个项目范围。 在同一项目放入大量文件名含查询词的文件、GBK 与 UTF-16 文件、2–16 MiB 日志和 CRLF 文件,确认结果只有内容行、各文件都能命中、正则 `$` 在 CRLF 行尾生效,点击结果跳到匹配列。 #2199:核对超过200条的同文件/多文件分页、文件折叠、未保存文本、范围过滤;设置16/32/64 MiB、恢复默认及外部冲突,确认查询/替换生效且不写安装目录。", + "verification": "使用同一项目和查询 fixture 对比命中路径、行号、列号和结果排序;在 macOS 深浅主题检查搜索框输入、焦点与失焦、工具按钮及文件类型图标;点击侧栏 Search 时第一个输入框不自动获得焦点,使用 Cmd+Shift+F 时仍获得焦点。 Search 查询与文件掩码、Database 连接搜索、Redis Key pattern 和 Nacos 配置/服务搜索均直接使用 Git Log 同源的全局唯一 LitheSearchFieldStyle;在深浅主题核对 36pt 外框、30pt 可见高度、4pt 圆角、1pt 常态边框、2pt 聚焦边框、3pt 外留白及 13pt 常规文字和提示色,确认无局部背景或原生边框叠加,并保留搜索、清除与键盘提交行为。 使用原生 NSHostingView 渲染验证共享 LitheSearchTextField 的占位文字在深浅主题均为 IDEA Component.infoForeground 对应的 #73767C、13pt 常规字重;空输入框单独绘制占位文字,避免 SwiftUI 原生 prompt 替换其颜色与字重,有内容时占位文字消失并保留原生编辑和主文字色。 中文输入法组词期间,即使绑定文本仍为空,共享 LitheSearchTextField 占位文字立即隐藏;取消组词或删空后恢复,确认中文后仍隐藏。原生 setMarkedText 回归覆盖明暗主题和两个输入框互不影响;保留焦点、键盘提交、搜索/过滤语义及占位字号颜色。原生背景观察视图卸载和移出窗口时清理通知,匹配当前窗口的字段编辑器及所属输入区域,不修改业务绑定。 共享搜索字段未聚焦时悬停立即显示文本编辑光标,离开或禁用时恢复箭头;保留中文组词、焦点及键盘动作。 macOS 项目树文件、目录、项目根和多选右键菜单均显示 Find in Files,调用已有项目范围搜索并聚焦查询框;验证编辑器选中文字预填与现有搜索规则。该菜单入口沿用整个项目范围。 在同一项目放入大量文件名含查询词的文件、GBK 与 UTF-16 文件、2–16 MiB 日志和 CRLF 文件,确认结果只有内容行、各文件都能命中、正则 `$` 在 CRLF 行尾生效,点击结果跳到匹配列。 #2199:核对超过200条的同文件/多文件分页、文件折叠、未保存文本、范围过滤;设置16/32/64 MiB、恢复默认及外部冲突,确认查询/替换生效且不写安装目录。 使用正式go.mod与固定Core运行TestProjectSearchVirtualizesLoadedGroups,检查大幅滚动到末尾仍生成可见结果行、偏移不越界,并保留24pt紧凑行;macOS专项已通过,Linux和Windows由发布PR完整CI验证,原生窗口状态保持pending。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { @@ -53,5 +53,5 @@ "verificationStatus": "pending" } }, - "notes": "Viva:Core 内容搜索按50行自动续页,同文件跨页不漏行;结果按文件分组/折叠,计数明确为已加载匹配行与文件数。支持脏文档快照、项目/已加载模块/目录/自定义路径和glob范围、临时包含Git忽略文件;手动排除和结构隐藏仍保留。大小来自工具→搜索设置。两端实机验收仍待完成。冷分页查询复用现成全文索引或直接扫描文件清单,不先建全文三元组索引。文件标题和命中行统一24pt,标题显示文件名/数量/次要目录,命中行从文件图标列显示左对齐的行列号与正文,复用13pt界面字体;检查明暗、中英文、折叠、滚动与跳转。 #2199补齐:首屏之后异步完整计数与已加载文件明细、计数失败重试;按清单选择器启动相关LSP并接入晚就绪符号查询;临时生成目录/内部链接选项,手动排除和外部链接边界保留,循环检测、目标监听重建和项目树别名刷新。验证使用真实文件和通用契约fixture,两端原生窗口仍pending。" + "notes": "Viva:Core 内容搜索按50行自动续页,同文件跨页不漏行;结果按文件分组/折叠,计数明确为已加载匹配行与文件数。支持脏文档快照、项目/已加载模块/目录/自定义路径和glob范围、临时包含Git忽略文件;手动排除和结构隐藏仍保留。大小来自工具→搜索设置。两端实机验收仍待完成。冷分页查询复用现成全文索引或直接扫描文件清单,不先建全文三元组索引。文件标题和命中行统一24pt,标题显示文件名/数量/次要目录,命中行从文件图标列显示左对齐的行列号与正文,复用13pt界面字体;检查明暗、中英文、折叠、滚动与跳转。 #2199补齐:首屏之后异步完整计数与已加载文件明细、计数失败重试;按清单选择器启动相关LSP并接入晚就绪符号查询;临时生成目录/内部链接选项,手动排除和外部链接边界保留,循环检测、目标监听重建和项目树别名刷新。验证使用真实文件和通用契约fixture,两端原生窗口仍pending。 0.8.9正式依赖:Core固定9399f163、Viva固定fork main c7bffddf;紧凑列表在一次大幅滚轮事件后先按实际内容高度限制偏移,再计算可见窗口,避免400行结果末尾397..399只有空白。" }