Skip to main content

Class: RepositoryInfoParser

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

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

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

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


repository

readonly repository: string

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

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