MCPcopy Create free account
hub / github.com/GCWing/BitFun / push

Method push

src/apps/cli/src/ui/chat/state.rs:60–65  ·  view source on GitHub ↗

Push a popup onto the stack

(&mut self, popup: PopupType)

Source from the content-addressed store, hash-verified

58
59 /// Push a popup onto the stack
60 pub fn push(&mut self, popup: PopupType) {
61 // Avoid duplicates at the top
62 if self.stack.last() != Some(&popup) {
63 self.stack.push(popup);
64 }
65 }
66
67 /// Pop the top popup from the stack
68 pub fn pop(&mut self) -> Option<PopupType> {

Callers 15

render_messagesMethod · 0.45
close_user_bubbleMethod · 0.45
render_messageMethod · 0.45
render_shortcutsMethod · 0.45
selection_textMethod · 0.45
show_info_popupMethod · 0.45
show_command_paletteMethod · 0.45
show_model_selectorMethod · 0.45
show_theme_selectorMethod · 0.45
show_agent_selectorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected