VS Code API
    Preparing search index...

    Function findFiles

    • Find files across all workspace folders in the workspace.

      Parameters

      • include: GlobPattern

        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.

      • Optionalexclude: GlobPattern | null

        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.

      • OptionalmaxResults: number

        An upper-bound for the result.

      • Optionaltoken: CancellationToken

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

      Returns Thenable<Uri[]>

      A thenable that resolves to an array of resource identifiers. Will return no results if no workspace folders are opened.

      findFiles('**​/*.js', '**​/node_modules/**', 10)