MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / isSupportedFile

Function isSupportedFile

src/core/parser.ts:379–383  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

377}
378
379export function isSupportedFile(filePath: string): boolean {
380 const ext = extname(filePath).toLowerCase();
381 if (detectLanguage(filePath) !== null) return true;
382 return getSupportedExtensions().includes(ext);
383}
384
385export function flattenSymbols(symbols: CodeSymbol[], parentName?: string): SymbolLocation[] {
386 const out: SymbolLocation[] = [];

Callers 10

parser.test.mjsFile · 0.85
parser.demo.mjsFile · 0.85
proposeCommitFunction · 0.85
getFileSkeletonFunction · 0.85
getBlastRadiusFunction · 0.85
buildTreeFunction · 0.85
buildIdentifierIndexFunction · 0.85

Calls 2

detectLanguageFunction · 0.85
getSupportedExtensionsFunction · 0.85

Tested by

no test coverage detected