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

    Implements

    Index

    Constructors

    Properties

    input: ScmInput
    onDidChange: Event<void> = ...
    onDidChangeEmitter: Emitter<void> = ...
    options: ScmProviderOptions = {}
    provider: ScmProvider
    toDispose: DisposableCollection = ...

    Accessors

    Methods

    • Build a URI that addresses the given file at a specific revision in this repository.

      The result reuses the workspace path of fileUri but switches the scheme to the provider id and encodes { path, ref } in the query, which is the contract resource resolvers (e.g. the Git extension) expect to retrieve content at a revision.

      Parameters

      • fileUri: URI

        The workspace URI of the file (typically a file: URI).

      • ref: string

        The revision (commit, branch, tag). An empty string addresses the index.

      Returns URI