Skip to main content

Class: RepositoryInfoParser

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

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:4978

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:4966

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


repository

readonly repository: string

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

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