createDeeplink
Function that creates a deeplink for an extension or script command.
Signature
There are three ways to use the function.
The first one is for creating a deeplink to a command inside the current extension:
function createDeeplink(options: {
type?: DeeplinkType.Extension,
command: string,
launchType?: LaunchType,
arguments?: LaunchProps["arguments"],
fallbackText?: string,
}): string;The second one is for creating a deeplink to an extension that is not the current extension:
function createDeeplink(options: {
type?: DeeplinkType.Extension,
ownerOrAuthorName: string,
extensionName: string,
command: string,
launchType?: LaunchType,
arguments?: LaunchProps["arguments"],
fallbackText?: string,
}): string;The third one is for creating a deeplink to a script command:
Arguments
Extension
typeis the type of the deeplink. It must beDeeplinkType.Extension.commandis the name of the command to deeplink to.launchTypeis the type of the launch.argumentsis an object that contains the arguments to pass to the command.fallbackTextis the text to show if the command is not available.For intra-extension deeplinks:
ownerOrAuthorNameis the name of the owner or author of the extension.extensionNameis the name of the extension.
Script command
typeis the type of the deeplink. It must beDeeplinkType.ScriptCommand.commandis the name of the script command to deeplink to.argumentsis an array of strings to be passed as arguments to the script command.
Return
Returns a string.
Example
Types
DeeplinkType
A type to denote whether the deeplink is for a script command or an extension.
Last updated

