Skip to content

[feat] configuration API: add onDidSave event#501

Merged
star-e merged 1 commit intococos:mainfrom
yanOO1497:4_22_config_save
Apr 22, 2026
Merged

[feat] configuration API: add onDidSave event#501
star-e merged 1 commit intococos:mainfrom
yanOO1497:4_22_config_save

Conversation

@yanOO1497
Copy link
Copy Markdown
Contributor

Summary

  • Add onDidSave(callback) to configuration.ts public API, exposing the configurationManager's configuration:save event
  • Returns a dispose function to unsubscribe
  • Used by PinK to detect CLI-initiated writes to cocos.config.json and suppress redundant file watcher reloads

暴露 configurationManager 的 save 事件,供 PinK 监听 CLI 内部写入以过滤文件监听事件。
@yanOO1497 yanOO1497 requested a review from Changdw April 22, 2026 07:32
@star-e star-e merged commit 3856f65 into cocos:main Apr 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants