Theia API Documentation v1.65.0
    Preparing search index...
    • 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: null | GlobPattern

        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 only default excludes 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)