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

Method setText

extensions/cli/src/ui/TextBuffer.ts:37–40  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

35 }
36
37 setText(text: string): void {
38 this._text = text;
39 this._cursor = Math.min(this._cursor, text.length);
40 }
41
42 setCursor(position: number): void {
43 this._cursor = Math.max(0, Math.min(position, this._text.length));

Callers 12

selectSlashCommandFunction · 0.80
selectFileFunction · 0.80
handleHistoryNavigationFunction · 0.80
handleEnterKeyFunction · 0.80
TextBuffer.test.tsFile · 0.80
EditMessageSelectorFunction · 0.80
createAndSaveNewFileMethod · 0.80
forceNextEditMethod · 0.80
forceCompletionMethod · 0.80
SSH.skip.tsFile · 0.80
PromptFile.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected