waveterm/frontend/app/view/codeeditor
Matt 6bfb9e650a
Fix Monaco editor syntax highlighting in Preview block (#2459)
The Preview block's CodeEditPreview component was not passing file
information to Monaco editor, preventing automatic language detection
from file extensions.

Changes:
- Add fileName prop to CodeEditor component
- Pass actual file path to Monaco with fallback to random UUID

Fixes syntax highlighting for all text files opened in Preview blocks
while maintaining backward compatibility with existing CodeEditor usage.

---------

Co-authored-by: sawka
2025-10-20 17:26:47 -07:00
..
codeeditor.tsx Fix Monaco editor syntax highlighting in Preview block (#2459) 2025-10-20 17:26:47 -07:00
schemaendpoints.ts feat: add schema for widgets.json (#1929) 2025-02-07 15:39:57 -08:00
yamlworker.js get json/yaml validation working (#1032) 2024-10-14 18:18:58 -07:00