From b70417231730c0e3a4ecba6a294168dacd199840 Mon Sep 17 00:00:00 2001 From: Jiwon Choi Date: Wed, 8 Jan 2025 01:57:49 +0800 Subject: [PATCH] misc: add `.stories.tsx` to vscode file nesting (#74593) This PR allows `.stories.tsx` files to be viewed as nested when they share the same filename with `.ts` and `.tsx`, similar to the `.test.` files. https://github.com/user-attachments/assets/8e280369-984d-4d33-b91a-392b3c18b5d9 --- .vscode/settings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e53c1b53beb32..22378cced749d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -68,8 +68,8 @@ // Enable file nesting for unit test files. "explorer.fileNesting.enabled": true, "explorer.fileNesting.patterns": { - "*.ts": "$(capture).test.ts, $(capture).test.tsx", - "*.tsx": "$(capture).test.ts, $(capture).test.tsx" + "*.ts": "$(capture).test.ts, $(capture).test.tsx, $(capture).stories.tsx", + "*.tsx": "$(capture).test.ts, $(capture).test.tsx, $(capture).stories.tsx" }, // Compile rust-analyzer in a separate directory to avoid conflicts with the main project. "rust-analyzer.cargo.targetDir": true,