MCPcopy Create free account
hub / github.com/backnotprop/plannotator / includeWorkspaceFile

Function includeWorkspaceFile

packages/server/reference-handlers.ts:547–549  ·  view source on GitHub ↗
(relativePath: string, _change: WorkspaceFileChange)

Source from the content-addressed store, hash-verified

545const FILE_BROWSER_EXTENSIONS = /\.(mdx?|txt|html?)$/i;
546
547function includeWorkspaceFile(relativePath: string, _change: WorkspaceFileChange): boolean {
548 return FILE_BROWSER_EXTENSIONS.test(relativePath) && !isFileBrowserExcludedPath(relativePath);
549}
550
551async function walkFileBrowserFiles(dir: string, root: string, files: Set<string>): Promise<void> {
552 let entries;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected