This commit is contained in:
Andras Schmelczer 2025-03-27 21:28:29 +00:00
commit 5fb7d71395
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -128,7 +128,7 @@ export default class VaultLinkPlugin extends Plugin {
}
}
private registerEditorEvents() {
private registerEditorEvents(): void {
[
this.app.workspace.on(
"editor-change",
@ -136,7 +136,7 @@ export default class VaultLinkPlugin extends Plugin {
_editor: Editor,
info: MarkdownView | MarkdownFileInfo
) => {
const file = info.file;
const { file } = info;
if (file) {
await this.client.syncLocallyUpdatedFile({
relativePath: file.path