Skip to content

Commit 04caea3

Browse files
authored
fix #38 /document open check blocks analysis in windows (#40)
1 parent c37c056 commit 04caea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ export function activate(context: vscode.ExtensionContext) {
103103
}
104104

105105
// Check if the document is visible in any editor
106-
const isVisible = vscode.window.visibleTextEditors.some(editor => editor.document.uri.toString() === document.uri.toString());
106+
const isVisible = vscode.window.visibleTextEditors.some(editor =>
107+
editor.document.uri.toString().replaceAll('\\', '/') === document.uri.toString().replaceAll('\\', '/'));
107108
if (!isVisible) {
108109
// Document is not visible, skip
109110
return;

0 commit comments

Comments
 (0)