findFilesAsync

fun findFilesAsync(include: GlobPattern, exclude: GlobPattern? = definedExternally, maxResults: Int = definedExternally, token: CancellationToken = definedExternally): PromiseLike<ReadonlyArray<Uri>>(source)

Find files across all workspace folders in the workspace.

Parameters

include

A glob pattern that defines the files to search for. The glob pattern will be matched against the file paths of resulting matches relative to their workspace. Use a relative pattern to restrict the search results to a workspace folder.

exclude

A glob pattern that defines files and folders to exclude. The glob pattern will be matched against the file paths of resulting matches relative to their workspace. When undefined, default file-excludes (e.g. the files.exclude-setting but not search.exclude) will apply. When null, no excludes will apply.

maxResults

An upper-bound for the result.

token

A token that can be used to signal cancellation to the underlying search engine.