Interface ShareProvider

A provider which generates share links for resources in the editor.

interface ShareProvider {
    id: string;
    label: string;
    priority: number;
    provideShare(item, token): ProviderResult<string | Uri>;
}

Properties

Methods

Properties

id: string

A unique ID for the provider. This will be used to activate specific extensions contributing share providers if necessary.

label: string

A label which will be used to present this provider's options in the UI.

priority: number

The order in which the provider should be listed in the UI when there are multiple providers.

Methods