Skip to main content

vtcode_core/ui/
mod.rs

1//! User interface utilities and shared UI components
2//!
3//! This module contains shared UI functionality including loading indicators,
4//! markdown rendering, and terminal utilities.
5
6pub mod diff_renderer;
7pub mod git_config;
8pub mod markdown;
9pub mod search;
10pub mod slash;
11pub mod stream_buffer;
12pub mod styled;
13pub mod syntax_highlight;
14pub mod table_formatter;
15pub mod terminal;
16pub mod theme;
17pub mod theme_config;
18pub mod theme_manager;
19pub mod tui;
20pub mod tui_compat;
21pub mod tui_mode;
22pub mod user_confirmation;
23
24pub use git_config::GitColorConfig;
25pub use markdown::*;
26pub use search::*;
27pub use slash::*;
28pub use styled::*;
29pub use terminal::*;
30pub use theme::*;
31pub use theme_config::ThemeConfig;
32pub use theme_manager::ThemeManager;
33pub use tui::*;
34pub use tui_compat::*;
35pub use tui_mode::*;
36pub use vtcode_tui::ui::FileColorizer;
37
38#[cfg(test)]
39mod tests {
40    use super::*;
41
42    #[test]
43    fn test_render_markdown() {
44        let markdown_text = r#"
45# Welcome to VT Code
46
47This is a **bold** statement and this is *italic*.
48
49## Features
50
51- Advanced code analysis
52- Multi-language support
53- Real-time collaboration
54"#;
55
56        // This should not panic
57        render_markdown(markdown_text);
58    }
59}