feat: custom audio/video file icons#54
Conversation
The frontend descriptor registers .m2t but MediaClassification.VIDEO_EXTENSIONS omitted it, so .m2t files classified as audio. This affects both the file icon and playback (PlayerConfig.isVideo drives the player UI via EditorMediaSource). Sync the set to the descriptor's video extensions: add m2t, drop the unused ts (.ts stays unregistered to avoid clobbering TypeScript files).
16x16 monochrome SVGs (light #6C707E, dark #CED0D6) adapted from Lucide file-music and file-video-camera. Live in the frontend module so they ship client-side for Remote Dev split mode.
Add a FileIconProvider that returns the audio or video icon per file based on MediaClassification.isVideo, keeping the single Media file type intact. Providers are consulted before FileType.getIcon, so this overrides the generic icon in the project tree, tabs, and navigation without touching the editor-selection paths.
Swap the file-shaped file-music/file-video-camera pair for the bolder music note and film strip so the type reads at a glance, and thin the stroke from 2.5 to Lucide's native 2.0.
|
Warning Review limit reached
More reviews will be available in 37 minutes and 58 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. 📝 WalkthroughWalkthroughRemoves ChangesMedia Icon Provider and Classification Fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2026.1.0
with:
upload-result: trueContact Qodana teamContact us at qodana-support@jetbrains.com
|
Distinct music (audio) and film (video) file-type icons via a
FileIconProvider, plus a fix so.m2tfiles classify as video instead of audio.Summary by CodeRabbit
New Features
Bug Fixes