vscode: made uri equality check on actual strings, not on the functions;
authorThomas Lindae <thomas.lindae@in.tum.de>
Fri, 05 Jul 2024 13:15:50 +0200
changeset 81071 e1bfcc2a2c05
parent 81070 de30087b4ff8
child 81072 d1beb91bf46d
vscode: made uri equality check on actual strings, not on the functions;
src/Tools/VSCode/extension/src/decorations.ts
--- a/src/Tools/VSCode/extension/src/decorations.ts	Fri Jul 05 13:15:05 2024 +0200
+++ b/src/Tools/VSCode/extension/src/decorations.ts	Fri Jul 05 13:15:50 2024 +0200
@@ -192,7 +192,7 @@
       document_decorations.set(uri.toString(), document)
 
       for (const editor of window.visibleTextEditors) {
-        if (uri.toString === editor.document.uri.toString) {
+        if (uri.toString() === editor.document.uri.toString()) {
           editor.setDecorations(typ, content)
         }
       }