From 18a83fde5cf7090fc642a93f53d5a20a36c831e9 Mon Sep 17 00:00:00 2001 From: Ilya Murav'jov Date: Sat, 20 Sep 2025 02:29:46 +0300 Subject: [PATCH] fix: TypeError: Cannot read properties of undefined (reading 'uri') --- lib/autocloaking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/autocloaking.js b/lib/autocloaking.js index 3365483..9187f09 100644 --- a/lib/autocloaking.js +++ b/lib/autocloaking.js @@ -27,7 +27,7 @@ function decorateMasking (context) { vscode.workspace.onDidOpenTextDocument(function (event) { const openEditor = vscode.window.visibleTextEditors.filter(function (editor) { try { - return editor.document.uri === event.document.uri + return editor.document.uri === event.uri } catch (e) { console.log(e) return false