New features and bug fixes #48
Merged
Merged
Conversation
|
Caution Review failedPull request was closed or merged during review 总体概述此PR增加了货币数据服务、扩展块编辑功能(包括块移动、命令面板、块折叠)、改进光标闪烁和块分隔符高度配置,并为MathJS语言添加了完整的语法解析器支持。 变更
序列图sequenceDiagram
participant App as 应用启动
participant CurrencyStore as 货币存储
participant CurrencyService as 货币服务<br/>(后端)
participant ConfigService as 配置服务
participant EditorStore as 编辑器存储
App->>CurrencyStore: 初始化onBeforeMount
CurrencyStore->>CurrencyService: initCurrencySync()
CurrencyService->>ConfigService: 检查缓存(12小时)
alt 缓存有效
CurrencyService-->>CurrencyStore: 返回缓存数据
else 缓存过期/无缓存
CurrencyService->>CurrencyService: HTTP GET汇率数据
CurrencyService->>ConfigService: 持久化新数据
CurrencyService-->>CurrencyStore: 返回新数据
end
CurrencyStore->>EditorStore: triggerCurrencyRefresh()
EditorStore->>EditorStore: 在编辑器实例中注册货币单位
CurrencyStore->>CurrencyStore: 设置4小时间隔定期刷新
sequenceDiagram
participant User as 用户
participant Editor as 编辑器
participant CmdPalette as 命令面板<br/>管理器
participant Dialog as 命令面板<br/>对话框
participant CommandRegistry as 命令<br/>注册表
User->>Editor: 按F1或Mod-Shift-P
Editor->>CmdPalette: openCommandPaletteCommand
CmdPalette->>Dialog: show()
Dialog->>Dialog: 初始化查询/焦点
Dialog->>CommandRegistry: 获取可用命令列表
Dialog->>Dialog: 按关键词排序/过滤
User->>Dialog: 输入查询/箭头键/Enter
Dialog->>CommandRegistry: 执行选中命令
CommandRegistry->>Editor: 运行命令处理器
Dialog->>Dialog: hide()
Editor->>Editor: 恢复焦点
预估代码审查工作量🎯 4 (复杂) | ⏱️ ~60 分钟 可能相关的PR
建议标签
诗歌
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
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.




Summary by CodeRabbit
发布说明
新功能
设置改进
其他