MCPcopy
hub / github.com/foambubble/foam / insert

Method insert

packages/foam-vscode/src/test/vscode-mock.ts:1160–1168  ·  view source on GitHub ↗
(uri: Uri, position: Position, newText: string)

Source from the content-addressed store, hash-verified

1158 }
1159
1160 insert(uri: Uri, position: Position, newText: string): void {
1161 const key = uri.toString();
1162 if (!this._edits.has(key)) {
1163 this._edits.set(key, []);
1164 }
1165 this._edits
1166 .get(key)!
1167 .push(new TextEdit(new Range(position, position), newText));
1168 }
1169
1170 delete(uri: Uri, range: Range): void {
1171 const key = uri.toString();

Callers

nothing calls this directly

Calls 5

pushMethod · 0.80
toStringMethod · 0.65
hasMethod · 0.65
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected