From 58732f983b4c2b941af6581e0c8ccae32dda21ac Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 9 Jul 2026 14:05:45 +0200 Subject: ide: fix test patterns --- .lazy.lua | 6 +++++- .vscode/settings.json | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.lazy.lua b/.lazy.lua index 76e8eb30..eca1d48a 100644 --- a/.lazy.lua +++ b/.lazy.lua @@ -68,7 +68,11 @@ return { nesting_rules = { ['cpp_under_hpp'] = { pattern = "(.*).hpp", - files = { "%1.cpp", "%1.test.cpp", "%1.tests.cpp", "%1.S" } + files = { "%1.cpp", "%1.tests.cpp", "%1.S" } + }, + ['tests_under_cpp'] = { + pattern = "(.*).cpp", + files = { "%1.tests.cpp" } }, }, }, diff --git a/.vscode/settings.json b/.vscode/settings.json index e83e19ac..7b537ecb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,7 +14,8 @@ "explorer.fileNesting.enabled": true, "explorer.fileNesting.expand": false, "explorer.fileNesting.patterns": { - "*.hpp": "${capture}.cpp, ${capture}.test.cpp, ${capture}.test.cpp, ${capture}.S", + "*.hpp": "${capture}.cpp, ${capture}.tests.cpp, ${capture}.S", + "*.cpp": "${capture}.tests.cpp", }, "[cpp]": { "editor.formatOnSave": true, -- cgit v1.2.3