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

Method delete

packages/foam-vscode/src/test/vscode-mock.ts:1170–1176  ·  view source on GitHub ↗
(uri: Uri, range: Range)

Source from the content-addressed store, hash-verified

1168 }
1169
1170 delete(uri: Uri, range: Range): void {
1171 const key = uri.toString();
1172 if (!this._edits.has(key)) {
1173 this._edits.set(key, []);
1174 }
1175 this._edits.get(key)!.push(new TextEdit(range, ''));
1176 }
1177
1178 renameFile(
1179 oldUri: Uri,

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