MCPcopy Create free account
hub / github.com/HKUDS/OpenSpace / finalizeCurrentFile

Function finalizeCurrentFile

frontend/src/utils/diffParser.ts:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 let awaitingNewFilePath = false;
28
29 const finalizeCurrentFile = () => {
30 if (currentFile && hasRenderableHunks(currentFile)) {
31 files.push(currentFile);
32 }
33 currentFile = null;
34 awaitingNewFilePath = false;
35 };
36
37 for (const line of raw.split('\n')) {
38 if (line.startsWith('--- a/')) {

Callers 1

parseDiffFunction · 0.85

Calls 1

hasRenderableHunksFunction · 0.85

Tested by

no test coverage detected