Repository navigation
Conversation
- 在 SDK 1.6 的 IPluginSettings 中增加按键订阅接口 OnChanged,并新增 PluginSettingChanged 变更模型 - 在 PluginSettings 中记录已持久化快照,原子保存成功后比较新旧值并通知对应订阅者 - 隔离订阅者回调异常,避免单个插件回调影响其他插件和宿主设置保存 - 在 PluginInstance 卸载阶段清理宿主持有的插件设置订阅,避免回调引用阻止 AssemblyLoadContext 回收 - 同步 SDK、设置页和参数目标的契约文档
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.
feat(plugin-settings): 保存设置后通知插件变更
变更内容
IPluginSettings中增加OnChanged订阅接口。PluginSettingChanged,用于传递设置键及旧值、新值。行为语义
Set()只修改内存状态,不触发回调。Save()成功写盘后才触发回调。IDispatcherFacade切换线程。