Skip to content

Commit d6d1785

Browse files
committed
fix: don't update tests if editing __init__.robot files
1 parent 6770537 commit d6d1785

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vscode-client/testcontrollermanager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ export class TestControllerManager {
439439

440440
public refreshDocument(document: vscode.TextDocument): void {
441441
if (!SUPPORTED_LANGUAGES.includes(document.languageId)) return;
442-
if (!SUPPORTED_SUITE_FILE_EXTENSIONS.some((ext) => document.uri.path.endsWith(ext))) return;
442+
if (!SUPPORTED_SUITE_FILE_EXTENSIONS.some((ext) => document.uri.path.toLowerCase().endsWith(ext))) return;
443+
if (document.uri.path.toLowerCase().endsWith("__init__.robot")) return;
443444

444445
const uri_str = document.uri.toString();
445446
if (this.didChangedTimer.has(uri_str)) {

0 commit comments

Comments
 (0)