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

Method renameFile

packages/foam-vscode/src/test/vscode-mock.ts:1178–1188  ·  view source on GitHub ↗
(
    oldUri: Uri,
    newUri: Uri,
    options?: { overwrite?: boolean; ignoreIfExists?: boolean }
  )

Source from the content-addressed store, hash-verified

1176 }
1177
1178 renameFile(
1179 oldUri: Uri,
1180 newUri: Uri,
1181 options?: { overwrite?: boolean; ignoreIfExists?: boolean }
1182 ): void {
1183 const key = oldUri.toString();
1184 if (!this._edits.has(key)) {
1185 this._edits.set(key, []);
1186 }
1187 this._edits.get(key)!.push({ type: 'rename', oldUri, newUri, options });
1188 }
1189
1190 set(uri: Uri, edits: TextEdit[]): void {
1191 const key = uri.toString();

Callers 1

renameFileFunction · 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