mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-22 08:18:29 +00:00
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 |
||
|---|---|---|
| .. | ||
| codeeditor.tsx | ||
| schemaendpoints.ts | ||
| yamlworker.js | ||