(plugin: CommentPlugin)
| 37 | } |
| 38 | |
| 39 | export function registerPluginVaultEvents(plugin: CommentPlugin): void { |
| 40 | plugin.registerEvent( |
| 41 | plugin.app.vault.on('rename', async (file, oldPath) => { |
| 42 | const services = plugin.services; |
| 43 | if (services) { |
| 44 | await services.highlightManager.handleFileRename(oldPath, file.path); |
| 45 | } |
| 46 | }) |
| 47 | ); |
| 48 | } |
no test coverage detected