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

Method createPlaceholder

extensions/cli/src/ui/TextBuffer.ts:291–300  ·  view source on GitHub ↗
(originalText: string)

Source from the content-addressed store, hash-verified

289
290 // Creates placeholder for single line or multi-line pastes
291 private createPlaceholder(originalText: string): string {
292 this._pasteCounter++;
293 const lineCount = originalText.split(/\r\n|\r|\n/).length;
294
295 if (lineCount === 1) {
296 return `[Paste #${this._pasteCounter}]`;
297 } else {
298 return `[Paste #${this._pasteCounter}, ${lineCount} lines]`;
299 }
300 }
301
302 // Handles bracketed paste: \e[200~ (start) and \e[201~ (end) sequences
303 private handleBracketedPaste(input: string): boolean {

Callers 2

handleBracketedPasteMethod · 0.95
finalizeRapidInputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected