MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / scan

Method scan

Extension/src/Utility/Filesystem/find.ts:203–207  ·  view source on GitHub ↗
(...location: (Promise<string> | string | number)[])

Source from the content-addressed store, hash-verified

201 scan(...location: (Promise<string> | string)[]): Finder;
202 scan(depth: number, ...location: (Promise<string> | string)[]): Finder;
203 scan(...location: (Promise<string> | string | number)[]): Finder {
204 const depth = typeof location[0] === 'number' ? location.shift() as number : 0;
205 this.promises.push(...location.map(each => scanFolder(each.toString(), depth, this.match, (f) => !this.#excludedFolders.has(f.name), this.#files)));
206 return this;
207 }
208
209 [Symbol.asyncIterator](): AsyncIterator<string> {
210 this.#files.complete();

Callers

nothing calls this directly

Calls 4

scanFolderFunction · 0.85
pushMethod · 0.80
toStringMethod · 0.80
hasMethod · 0.80

Tested by

no test coverage detected