MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / selectFile

Function selectFile

ai-code-studio/src/components/SoulEditor.tsx:37–43  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

35 }, [workspaceDir, loadFiles]);
36
37 function selectFile(name: string) {
38 const file = files.find(f => f.name === name);
39 if (file) {
40 setActiveFile(name);
41 setEditContent(file.content);
42 }
43 }
44
45 async function handleSave() {
46 if (!activeFile) return;

Callers 1

SoulEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected