MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / insert

Method insert

packages/vscode-shim/src/classes/TextEdit.ts:168–174  ·  view source on GitHub ↗

* Add an insert edit * * @param uri - The document URI * @param position - The position to insert at * @param newText - The text to insert

(uri: { toString(): string }, position: IPosition, newText: string)

Source from the content-addressed store, hash-verified

166 * @param newText - The text to insert
167 */
168 insert(uri: { toString(): string }, position: IPosition, newText: string): void {
169 const key = uri.toString()
170 if (!this._edits.has(key)) {
171 this._edits.set(key, [])
172 }
173 this._edits.get(key)!.push(TextEdit.insert(position, newText))
174 }
175
176 /**
177 * Add a replace edit

Callers

nothing calls this directly

Calls 5

toStringMethod · 0.65
hasMethod · 0.65
setMethod · 0.65
getMethod · 0.65
insertMethod · 0.65

Tested by

no test coverage detected