From 005663f01a85a9246fe977492b29fc0df4cf95aa Mon Sep 17 00:00:00 2001 From: 4Source <38220764+4Source@users.noreply.github.com> Date: Mon, 16 Mar 2026 14:02:57 +0100 Subject: [PATCH] Remove "debug" from allowed console methods in ESLint configuration --- .eslintrc.release | 3 +-- src/OpenEditorsView.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.eslintrc.release b/.eslintrc.release index 91ed21d..d7a2ea1 100644 --- a/.eslintrc.release +++ b/.eslintrc.release @@ -9,13 +9,12 @@ "allow": [ "warn", "error", - "debug" ] } ], "multiline-comment-style": [ "error", - "starred-block" + "starred-block", ] } } \ No newline at end of file diff --git a/src/OpenEditorsView.ts b/src/OpenEditorsView.ts index 6cc2977..99306c0 100644 --- a/src/OpenEditorsView.ts +++ b/src/OpenEditorsView.ts @@ -178,12 +178,12 @@ export class OpenEditorsView extends View { callback: tree => { const leaf = this.app.workspace.getLeafById(tree.id); if (!leaf) { - console.debug('Leaf not found with the id ', tree.id); + console.warn('Leaf not found with the id ', tree.id); return; } const parent = leaf?.parent; if (!parent) { - console.debug('Parent of leaf not found!'); + console.warn('Parent of leaf not found!'); return; } leafParent = parent;