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

Method deleteCharAt

extensions/cli/src/ui/TextBuffer.ts:56–64  ·  view source on GitHub ↗
(position: number)

Source from the content-addressed store, hash-verified

54 }
55
56 deleteCharAt(position: number): void {
57 if (position >= 0 && position < this._text.length) {
58 this._text =
59 this._text.slice(0, position) + this._text.slice(position + 1);
60 if (this._cursor > position) {
61 this._cursor--;
62 }
63 }
64 }
65
66 deleteBackward(): void {
67 if (this._cursor > 0) {

Callers 3

deleteBackwardMethod · 0.95
deleteForwardMethod · 0.95
TextBuffer.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected