in tools/vscode-azurewebpubsub/src/workflows/service/copyEndpoint/CopyEndpointStep.ts [15:26]
public async execute(context: ICopyEndpointContext, _progress: Progress<{ message?: string | undefined; increment?: number | undefined }>): Promise<void> {
if (!context.subscription || !context.serviceName || !context.resourceGroupName || !context.endpoint) {
throw new Error(localize(
"InvalidICopyEndpointContext",
'Invalid ICopyEndpointContext, subscription: {0}, serviceName: {1}, resourceGroupName: {2}, endpoint: {3}', context.subscription?.subscriptionId, context.serviceName, context.resourceGroupName, context.endpoint)
);
}
await env.clipboard.writeText(context.endpoint);
// eslint-disable-next-line @typescript-eslint/no-floating-promises
vscode.window.showInformationMessage(`Copied endpoint of ${context.serviceName} to clipboard`);
}