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

Method readDirectory

extensions/vscode/src/util/ideUtils.ts:182–193  ·  view source on GitHub ↗

* Retrieve all entries of a directory from the given URI. * * @param uri - The URI of the directory to read. * @param ignoreMissingProviders - Optional. If `true`, missing file system providers will be ignored. Defaults to `true`. * @returns A promise that resolves to an array of tuples,

(
    uri: vscode.Uri,
    ignoreMissingProviders: boolean = true,
  )

Source from the content-addressed store, hash-verified

180 * and its type (`vscode.FileType`), or `null` if the scheme is unsupported or the provider is missing and `ignoreMissingProviders` is `true`.
181 */
182 async readDirectory(
183 uri: vscode.Uri,
184 ignoreMissingProviders: boolean = true,
185 ): Promise<[string, vscode.FileType][] | null> {
186 return await this.fsOperation(
187 uri,
188 async (u) => {
189 return await vscode.workspace.fs.readDirectory(uri);
190 },
191 ignoreMissingProviders,
192 );
193 }
194
195 /**
196 * Performs a file system operation on the given URI using the provided delegate function.

Callers 2

listDirMethod · 0.80
addEntireFileToContextFunction · 0.80

Calls 1

fsOperationMethod · 0.95

Tested by

no test coverage detected