MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / sync_command_palette_labels

Method sync_command_palette_labels

crates/opencode-tui/src/app/app.rs:3134–3151  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

3132 }
3133
3134 fn sync_command_palette_labels(&mut self) {
3135 let show_thinking = *self.context.show_thinking.read();
3136 let show_tool_details = *self.context.show_tool_details.read();
3137 let density = *self.context.message_density.read();
3138 let semantic_hl = *self.context.semantic_highlight.read();
3139 let show_header = *self.context.show_header.read();
3140 let show_scrollbar = *self.context.show_scrollbar.read();
3141 let tips_hidden = *self.context.tips_hidden.read();
3142 self.command_palette.sync_visibility_labels(
3143 show_thinking,
3144 show_tool_details,
3145 density,
3146 semantic_hl,
3147 show_header,
3148 show_scrollbar,
3149 tips_hidden,
3150 );
3151 }
3152
3153 fn draw(&mut self) -> anyhow::Result<()> {
3154 self.context

Callers 2

handle_eventMethod · 0.80

Calls 2

readMethod · 0.80

Tested by

no test coverage detected