This commit is contained in:
Andras Schmelczer 2025-11-23 15:13:30 +00:00
parent 5a0c64d39c
commit fb2d82a06e
6 changed files with 18 additions and 16 deletions

View file

@ -1,8 +1,9 @@
import type { Stat, Vault, Workspace } from "obsidian";
import { MarkdownView, normalizePath } from "obsidian";
import {
import type {
CursorPosition,
TextWithCursors,
TextWithCursors} from "sync-client";
import {
utils,
type FileSystemOperations,
type RelativePath

View file

@ -38,7 +38,7 @@ export default class VaultLinkPlugin extends Plugin {
() => Promise<unknown>
>();
private syncClient: SyncClient | undefined;
private readonly syncClient: SyncClient | undefined;
private settingsTab: SyncSettingsTab | undefined;
public async onload(): Promise<void> {
@ -152,7 +152,7 @@ export default class VaultLinkPlugin extends Plugin {
this.registerView(HistoryView.TYPE, (leaf) => {
const view = new HistoryView(client, leaf);
this.register(() => view.onClose());
this.register(async () => view.onClose());
return view;
});
@ -180,7 +180,7 @@ export default class VaultLinkPlugin extends Plugin {
this.app.workspace,
client
);
this.register(() => editorStatusDisplayManager.dispose());
this.register(() => { editorStatusDisplayManager.dispose(); });
}
private addRibbonIcons(): void {