We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c37c056 commit 04caea3Copy full SHA for 04caea3
src/extension.ts
@@ -103,7 +103,8 @@ export function activate(context: vscode.ExtensionContext) {
103
}
104
105
// Check if the document is visible in any editor
106
- const isVisible = vscode.window.visibleTextEditors.some(editor => editor.document.uri.toString() === document.uri.toString());
+ const isVisible = vscode.window.visibleTextEditors.some(editor =>
107
+ editor.document.uri.toString().replaceAll('\\', '/') === document.uri.toString().replaceAll('\\', '/'));
108
if (!isVisible) {
109
// Document is not visible, skip
110
return;
0 commit comments