MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / isCodeFile

Function isCodeFile

frontend/src/features/trace/lib/file-utils.ts:118–122  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

116}
117
118export function isCodeFile(filename: string): boolean {
119 const { base, ext } = normName(filename)
120 if (isSpecialCodeName(base)) return true
121 return CODE_EXTS.has(ext)
122}
123
124// Check if file format has a supported previewer
125export function isSupportedPreview(filename: string): boolean {

Callers 3

iconForFunction · 0.90
FilePreviewFunction · 0.90
isSupportedPreviewFunction · 0.85

Calls 2

normNameFunction · 0.85
isSpecialCodeNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…