# HG changeset patch # User Ludovic Chabant # Date 1695255551 25200 # Node ID aa9bc7754c5dfccc90d6305ef1e2c11d346aa92b # Parent 96e86650043b8d926ab26fb21101b4b08a826be4 Fix typos in debug log messages diff -r 96e86650043b -r aa9bc7754c5d src/main.ts --- a/src/main.ts Wed Sep 20 17:18:47 2023 -0700 +++ b/src/main.ts Wed Sep 20 17:19:11 2023 -0700 @@ -155,20 +155,20 @@ if (viewId != undefined) { var uninstaller = this._viewUninstallers[viewId]; if (uninstaller) { - console.debug(`RememberedFileState: uninstalling hooks for view ${viewId}`, filePath); + console.debug(`RememberFileState: uninstalling hooks for view ${viewId}`, filePath); uninstaller(leaf.view); ++numViews; } else { - console.debug("RememberedFileState: found markdown view without an uninstaller!", filePath); + console.debug("RememberFileState: found markdown view without an uninstaller!", filePath); } // Clear the ID so we don't get confused if the plugin // is re-enabled later. this.clearUniqueViewId(leaf.view as ViewWithID); } else { - console.debug("RememberedFileState: found markdown view without an ID!", filePath); + console.debug("RememberFileState: found markdown view without an ID!", filePath); } }); - console.debug(`RememberedFileState: unregistered ${numViews} view callbacks`); + console.debug(`RememberFileState: unregistered ${numViews} view callbacks`); this._viewUninstallers = {}; this._lastOpenFiles = {}; @@ -191,7 +191,7 @@ return; } - console.debug(`RememberedFileState: registering callback on view ${viewId}`, filePath); + console.debug(`RememberFileState: registering callback on view ${viewId}`, filePath); const _this = this; var uninstall = around(view, { onUnloadFile: function(next) { @@ -210,13 +210,13 @@ // @ts-ignore var plugin: RememberFileStatePlugin = app.plugins.getPlugin("obsidian-remember-file-state"); if (plugin) { - console.debug(`RememberedFileState: unregistering view ${viewId} callback`, filePath); + console.debug(`RememberFileState: unregistering view ${viewId} callback`, filePath); delete plugin._viewUninstallers[viewId]; delete plugin._lastOpenFiles[viewId]; uninstall(); } else { console.debug( - "RememberedFileState: plugin was unloaded, ignoring unregister"); + "RememberFileState: plugin was unloaded, ignoring unregister"); } }); } @@ -300,7 +300,7 @@ // do it now. this.forgetExcessFiles(); } - console.debug("RememberedFileState: remembered state for:", file.path, stateData); + console.debug("RememberFileState: remembered state for:", file.path, stateData); } private readonly getState = function(view: MarkdownView) {