Skip to main content

Class: RepositoryInfoParser

Defined in: packages/extension-api/src/extension-api.d.ts:5075

Parses a repository URL to extract owner and repository information. It currently only supports GitHub repositories.

Constructors

Constructor

new RepositoryInfoParser(url): RepositoryInfoParser

Defined in: packages/extension-api/src/extension-api.d.ts:5091

Creates an instance of RepositoryInfoParser.

Parameters

url

string

The URL of the repository to parse.

Returns

RepositoryInfoParser

Throws

If the URL cannot be parsed.

Throws

If the repository is not hosted on GitHub.

Properties

owner

readonly owner: string

Defined in: packages/extension-api/src/extension-api.d.ts:5079

The owner of the GitHub repository (e.g., 'microsoft').


repository

readonly repository: string

Defined in: packages/extension-api/src/extension-api.d.ts:5083

The name of the GitHub repository (e.g., 'vscode').