Skip to content

fix(vscode-extension): skip inaccessible filesystem entries during activation scan#15363

Open
qfai wants to merge 3 commits intodevfrom
fix/vscode-extension-eacces-claude-debug-path
Open

fix(vscode-extension): skip inaccessible filesystem entries during activation scan#15363
qfai wants to merge 3 commits intodevfrom
fix/vscode-extension-eacces-claude-debug-path

Conversation

@qfai
Copy link
Copy Markdown
Contributor

@qfai qfai commented Feb 26, 2026

Summary

This change prevents extension activation from failing when workspace scanning encounters inaccessible filesystem entries.

Repro (Windows PowerShell)

mkdir .repro-denied
echo "x" > .repro-denied\dummy.txt
icacls .repro-denied /inheritance:r
icacls .repro-denied /deny "(OI)(CI)RX"
code .

Then run Developer: Reload Window and check Log (Extension Host).

Expected

Extension activates successfully and skips unreadable entries.

Actual (before fix)

A single EACCES/EPERM during recursive traversal can abort activation.

Fix

Add per-entry guards in recursive scanning logic:

  • protect directory listing
  • protect metadata checks
  • protect optional JSON reads
  • continue traversal on access errors

Validation

  • Reproduced activation failure with an unreadable directory (before fix).
  • Verified activation continues after this change by skipping inaccessible entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant