changeset 41:aa9bc7754c5d

Fix typos in debug log messages
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 20 Sep 2023 17:19:11 -0700
parents 96e86650043b
children d52beb77d109
files src/main.ts
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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) {