Theia API Documentation v1.65.0
    Preparing search index...

    Implements

    Index

    Constructors

    Properties

    logger: ILogger

    Methods

    • The default search paths are set to be the root paths associated to a workspace however the search scope can be further refined with the include paths available in the search options. This method will replace the searching paths to the ones specified in the 'include' options but as long as the 'include' paths can be successfully validated as existing.

      Therefore the returned array of paths can be either the workspace root paths or a set of validated paths derived from the include options which can be used to perform the search.

      Any pattern that resulted in a valid search path will be removed from the 'include' list as it is provided as an equivalent search path instead.

      Parameters

      • searchPaths: string[]
      • include: string[]

      Returns Promise<string[]>