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

    Implements

    Index
    fileSearchService: FileSearchService
    preferences: PreferenceService
    workspaceScope: WorkspaceFunctionScope
    workspaceService: WorkspaceService
    ID: string = FIND_FILES_BY_PATTERN_FUNCTION_ID
    • Returns the caller's globs to match relative to the given root. A glob is relative to every root, and if it starts with the name of this root, e.g. backend/src/**/*.ts as in the paths this tool returns, its rest is relative to this root as well, as the caller may mean either.

      Parameters

      • globs: string[]
      • rootUri: URI

      Returns string[]

    • Renders a search-result URI in the format expected by the caller: an absolute path for external roots, or a <rootName>/<relativePath> for workspace roots.

      Parameters

      • match: URI
      • target: { external: boolean; rootName?: string; rootUri: URI }

      Returns string | undefined