Skip to content

Conversation

@TCOTC
Copy link
Contributor

@TCOTC TCOTC commented Nov 5, 2025

  • 修复:最近的文档面板每次打开的时候都是显示最近浏览的文档 https://ld246.com/article/1762255552690
  • 修复:最近的文档面板左下角路径信息在特定情况下不正确
  • 修复:最近的文档面板选项的 data-index 属性值在特定情况下不正确
  • 修复:批量关闭页签时,没有批量更新 recent-doc.json 的文档关闭时间
  • 修复:修改文档图标没有同步更新 recent-doc.json,改为动态获取,不再把 Title 和 Icon 保存到 json 里
  • 修复:无论筛选类型是什么,最近浏览、最近打开、最近关闭的文档之前都是混合在一起的 32 条记录,只是排序不同,本 PR 改为严谨区分,打开或浏览文档时清空最近关闭时间、并且每种类型都最多保留 32 条记录(理论上限为 96 条记录,正常使用上限为 64 条记录)
  • 修复:updateRecentDocCloseTime 异常 #16267
  • 重构:修改了部分不符合实际功能含义的函数名和变量名
  • 重构:最近的文档的排序从前端实现改为后端实现
  • 重构:获取最近编辑的文档从前端实现改为后端实现
  • 重构:GetDoc 不代表打开文档,将其中执行的 setRecentDocByTree 移除。AI 还说“存在功能重复和潜在的竞态条件”
  • 重构:getRecentDocs 会剔除不存在的文档,不需要一个单独的 RemoveRecentDoc 功能

@TCOTC TCOTC marked this pull request as draft November 5, 2025 08:40
@TCOTC TCOTC marked this pull request as ready for review November 5, 2025 09:04
@TCOTC TCOTC marked this pull request as draft November 5, 2025 09:11
@TCOTC TCOTC marked this pull request as ready for review November 5, 2025 09:29
@88250 88250 requested a review from Vanessa219 November 6, 2025 09:02
@88250 88250 added the Refactor label Nov 6, 2025
@TCOTC TCOTC force-pushed the fix/recent branch 2 times, most recently from 959310d to 16cc188 Compare November 6, 2025 17:25
@88250 88250 added Enhancement and removed Refactor labels Nov 7, 2025
@88250 88250 added this to the 3.4.0 milestone Nov 7, 2025
@88250 88250 changed the title Refactor recent documents handling Improve recent documents handling Nov 7, 2025
@88250 88250 modified the milestones: 3.4.0, 3.4.1 Nov 13, 2025
@Vanessa219 Vanessa219 removed this from the 3.4.1 milestone Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants