Skip to content

Add tests + fix PII redaction#278377

Merged
lramos15 merged 1 commit intomainfrom
lramos15/digital-amphibian
Nov 19, 2025
Merged

Add tests + fix PII redaction#278377
lramos15 merged 1 commit intomainfrom
lramos15/digital-amphibian

Conversation

@lramos15
Copy link
Member

Copilot AI review requested due to automatic review settings November 19, 2025 16:11
@lramos15 lramos15 enabled auto-merge (squash) November 19, 2025 16:11
@lramos15 lramos15 self-assigned this Nov 19, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes PII (Personally Identifiable Information) redaction in error telemetry by correcting the cleanup pattern and adds comprehensive test coverage to verify that user paths are properly removed from stack traces while preserving important code paths.

Key changes:

  • Fixed the cleanup pattern regex to properly match file URIs with two slashes instead of three
  • Added six new test cases covering Windows, macOS, and Linux PII redaction for both unexpected and uncaught errors

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/platform/telemetry/common/telemetryService.ts Fixed regex pattern from three to two slashes to correctly match vscode-file:// URIs
src/vs/platform/telemetry/test/browser/telemetryService.test.ts Added comprehensive test coverage for PII redaction across Windows, macOS, and Linux platforms

@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 19, 2025
@lramos15 lramos15 merged commit e493c80 into main Nov 19, 2025
28 checks passed
@lramos15 lramos15 deleted the lramos15/digital-amphibian branch November 19, 2025 16:32
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants