MCPcopy Index your code
hub / github.com/continuedev/continue / canUseInstantApply

Function canUseInstantApply

core/edit/lazy/applyCodeBlock.ts:9–12  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

7import { applyUnifiedDiff, isUnifiedDiffFormat } from "./unifiedDiffApply";
8
9function canUseInstantApply(filename: string) {
10 const fileExtension = getUriFileExtension(filename);
11 return supportedLanguages[fileExtension] !== undefined;
12}
13
14export async function applyCodeBlock(
15 oldFile: string,

Callers 1

applyCodeBlockFunction · 0.85

Calls 1

getUriFileExtensionFunction · 0.90

Tested by

no test coverage detected