Roo-Code/webview-ui/src
KJ7LNW 9317765fb1
Fix: Missing or inconsistent syntax highlighting across UI components (#3656)
* fix: Missing or inconsistent syntax highlighting across UI components

- Change file listings to use 'shellsession' for terminal-like highlighting
- Use 'markdown' for code definitions and instructions
- Add file extension-based language detection for new files
- Ensure consistent 'diff' highlighting for all diff content
- Use 'xml' language for error messages
- Make language property required in CodeAccordian
- Set default fallback to 'txt' instead of undefined

Fixes: #3655
Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* chore: make language property required in CodeBlock

- Updated CodeBlockProps interface to make language property required
- Updated mock implementation to match the interface change
- Ensured CodeAccordian always provides a fallback language value

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

---------

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>
Co-authored-by: Eric Wheeler <roo-code@z.ewheeler.org>
2025-05-20 22:29:57 -04:00
..
__mocks__ feat: Add shift-click to append suggestions to text area (#2081) 2025-03-30 23:35:02 -04:00
__tests__ [Condense] Add a button to condense the task context (#3623) 2025-05-20 13:47:02 -07:00
components Fix: Missing or inconsistent syntax highlighting across UI components (#3656) 2025-05-20 22:29:57 -04:00
context ✨ feat(settings): Add allowedMaxRequests feature inspired by Cline (#3631) 2025-05-20 11:30:27 -04:00
i18n [Condense] Show indicator message when context is condensing (#3765) 2025-05-20 21:19:24 -04:00
lib Add shadcn/ui + Storybook 2025-01-30 12:50:09 -08:00
oauth Get package publisher and name from package.json + command type safety (#3766) 2025-05-20 16:41:03 -07:00
stories Fix linter warning + run prettier on everything (#3581) 2025-05-13 15:16:24 -07:00
utils Fix incorrect reserved tokens calculation on OpenRouter (#3626) 2025-05-15 07:22:07 -04:00
App.tsx UI top down homescreen (#2951) 2025-04-25 22:39:11 -04:00
index.css fix: enhance focus styles in select-dropdown and docs url (#3336) 2025-05-08 09:41:09 -07:00
index.tsx Overhaul CodeBlock rendering (#3019) 2025-04-28 17:10:57 -07:00
preflight.css Bring most of Tailwind's preflight.css back 2025-02-03 12:18:28 -08:00
setupTests.ts Fix context window bar color (#2733) 2025-04-17 23:25:35 -04:00
types.d.ts Welcome page OAuth (#1913) 2025-03-23 10:08:16 -04:00
vite-env.d.ts Remove lucide 2025-01-30 14:47:59 -08:00