VS Code API
    Preparing search index...

    Function createSourceControl

    • Creates a new source control instance.

      Parameters

      • id: string

        An id for the source control. Something short, e.g.: git.

      • label: string

        A human-readable string for the source control. E.g.: Git.

      • OptionalrootUri: Uri

        An optional Uri of the root of the source control. E.g.: Uri.parse(workspaceRoot).

      Returns SourceControl

      An instance of source control.