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

Function handleTextBufferUpdate

extensions/cli/src/ui/UserInput.tsx:684–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

682
683 // Handle text buffer updates for async operations like image pasting
684 const handleTextBufferUpdate = () => {
685 const newText = textBuffer.text;
686 const newCursor = textBuffer.cursor;
687 setInputText(newText);
688 setCursorPosition(newCursor);
689 updateSlashCommandState(newText, newCursor);
690 updateFileSearchState(newText, newCursor);
691 updateBashModeState(newText);
692 inputHistory.resetNavigation();
693 };
694
695 // State for showing image paste hint
696 const [_hasImageInClipboard, _setHasImageInClipboard] = useState(false);

Callers

nothing calls this directly

Calls 4

updateSlashCommandStateFunction · 0.85
updateFileSearchStateFunction · 0.85
updateBashModeStateFunction · 0.85
resetNavigationMethod · 0.80

Tested by

no test coverage detected