Skip to main content

HealExecutableBits

Function HealExecutableBits 

Source
pub fn HealExecutableBits(InstalledAt: &Path)
Expand description

Walk an installed extension directory and chmod +x any file that matches the same executable heuristic as fresh installs. Used on the idempotent reinstall path so users who installed extensions before the exec-bit promotion landed don’t need to manually chmod shipped binaries (rust-analyzer/server/rust-analyzer, openai.chatgpt/bin/<triple>/codex, Dart-Code/bin/dart, etc.).

Errors are swallowed - this is a best-effort heal, never the reason an install fails. A file we can’t open or stat just keeps its existing mode and the extension’s spawn will surface the same EACCES it would have anyway.