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

Function renameFile

packages/foam-vscode/src/test/test-utils-vscode.ts:163–167  ·  view source on GitHub ↗
(from: URI, to: URI)

Source from the content-addressed store, hash-verified

161};
162
163export const renameFile = (from: URI, to: URI) => {
164 const edit = new vscode.WorkspaceEdit();
165 edit.renameFile(toVsCodeUri(from), toVsCodeUri(to));
166 return vscode.workspace.applyEdit(edit);
167};
168
169const decoder = new TextDecoder('utf-8');
170export const readFile = async (uri: URI) => {

Callers 1

refactor.spec.tsFile · 0.90

Calls 2

renameFileMethod · 0.95
toVsCodeUriFunction · 0.90

Tested by

no test coverage detected