MCPcopy Create free account
hub / github.com/continuedev/continue / updateBashModeState

Function updateBashModeState

extensions/cli/src/ui/UserInput.tsx:227–236  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

225
226 // Update shell mode state based on input
227 const updateBashModeState = (text: string) => {
228 const trimmed = text.trimStart();
229 const isBash = trimmed.startsWith("!");
230 setShowBashMode(isBash);
231 if (isBash) {
232 // Disable other helpers while in shell mode
233 setShowSlashCommands(false);
234 setShowFileSearch(false);
235 }
236 };
237
238 // Update slash command UI state based on input
239 const updateSlashCommandState = (text: string, cursor: number) => {

Callers 2

handleTextBufferUpdateFunction · 0.85
updateTextBufferStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected