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

Function getSymbolsForManyFiles

core/util/treeSitter.ts:294–311  ·  view source on GitHub ↗
(
  uris: string[],
  ide: IDE,
)

Source from the content-addressed store, hash-verified

292}
293
294export async function getSymbolsForManyFiles(
295 uris: string[],
296 ide: IDE,
297): Promise<FileSymbolMap> {
298 const filesAndSymbols = await Promise.all(
299 uris.map(async (uri): Promise<[string, SymbolWithRange[]]> => {
300 const contents = await ide.readFile(uri);
301 let symbols = undefined;
302 try {
303 symbols = await getSymbolsForFile(uri, contents);
304 } catch (e) {
305 console.error(`Failed to get symbols for ${uri}:`, e);
306 }
307 return [uri, symbols ?? []];
308 }),
309 );
310 return Object.fromEntries(filesAndSymbols);
311}

Callers 1

Calls 3

getSymbolsForFileFunction · 0.85
errorMethod · 0.80
readFileMethod · 0.65

Tested by

no test coverage detected