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

Method set

packages/foam-vscode/src/test/vscode-mock.ts:1190–1196  ·  view source on GitHub ↗
(uri: Uri, edits: TextEdit[])

Source from the content-addressed store, hash-verified

1188 }
1189
1190 set(uri: Uri, edits: TextEdit[]): void {
1191 const key = uri.toString();
1192 if (!this._edits.has(key)) {
1193 this._edits.set(key, []);
1194 }
1195 this._edits.get(key)!.push(...edits);
1196 }
1197
1198 get(uri: Uri): TextEdit[] | undefined {
1199 const key = uri.toString();

Callers 2

toVsCodeWorkspaceEditFunction · 0.95
activateFunction · 0.95

Calls 5

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

Tested by

no test coverage detected