We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12eece1 commit 6e69d40Copy full SHA for 6e69d40
packages/core/src/shared/utilities/vsCodeUtils.ts
@@ -215,8 +215,11 @@ export function reloadWindowPrompt(message: string): void {
215
* if user dismisses the vscode confirmation prompt.
216
*/
217
export async function openUrl(url: vscode.Uri, source?: string): Promise<boolean> {
218
+ // Avoid PII in URL.
219
+ const truncatedUrl = `${url.scheme}${url.authority}${url.path}${url.fragment.substring(20)}`
220
+
221
return telemetry.aws_openUrl.run(async (span) => {
- span.record({ url: url.toString(), source })
222
+ span.record({ url: truncatedUrl, source })
223
const didOpen = await vscode.env.openExternal(url)
224
if (!didOpen) {
225
throw new CancellationError('user')
0 commit comments