Skip to content

Block auto-approval of file-write redirection to ~ and % paths #320660

Closed

Description

Extends the file-write redirection guard to also block auto-approval when the destination path contains ~ (POSIX tilde expansion) or % (Windows env-var expansion), since neither posix.isAbsolute nor win32.isAbsolute classifies these as absolute paths.

Adds regression tests for both bash (~/file.txt, %HOME%/file.txt) and pwsh (~\file.txt, %APPDATA%\file.txt).

Tracking internal PR: devdiv-microsoft/vscode-private#43

Activity

  1. added
    bug
    on Jun 9, 2026
  2. omg775 commented on Jun 9, 2026

    @omg775

    Hi, I’d like to work on this issue.

  3. added
    unreleased
    on Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugunreleased

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions