Skip to content

Commit

Permalink
misc: add .stories.tsx to vscode file nesting (vercel#74593)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
devjiwonchoi authored Jan 7, 2025
1 parent 13d5750 commit b704172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b704172

Please sign in to comment.