feat: add routing icon support for *.route.ts and *.route.tsx#2917
Conversation
PKief
left a comment
There was a problem hiding this comment.
From my point of view the current icon isn't such a good fit for single route files. The icon currently shows a way sign which typically shows multiple routes. If we associate the icon to a single route it doesn't feel like a good fit from my point of view. This icon is rather made for route configs where multiple routes are configured than for a single route file.
|
I completely understand the point you're raising. Just to clarify the structure we're using: In my project, I have a Here's an example of what a typical file ( Even though each file focuses on one resource, it still defines multiple routes (GET, POST, DELETE, etc.), which is why I felt the current routing.svg icon was appropriate. These files are part of the overall routing layer, just structured in a more modular way. My intention was to make all route-related files visually consistent, regardless of whether they handle the full app’s routes ( |
PKief
left a comment
There was a problem hiding this comment.
Okay, let's give it a try. Your argumentation makes sense to me as well.
Merge SuccessfulThanks for your contribution! 🎉 The changes will be part of the upcoming update on the Marketplace. |

Description
Added support for
*.route.js,*.route.jsx,*.route.tsand*.route.tsxfiles to show the routing.svg icon, similar to existing*.routes.js,*.routes.jsx,*.routes.tsand*.routes.tsx.This change ensures that single route files (common in
routes/folders) get the correct icon, improving consistency.Contribution Guidelines