Skip to content

fix: re-install command on macOS via elevation #260321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deepak1556
Copy link
Collaborator

Fix situation when code command was overwritten to a different application and attempting to reinstall the command from VSCode would throw an error. This is because we tried to unlink as a normal user which would return EACCES. The action to create symlink is performed via elevation and -sf will override an existing symlink, so we can instead retry directly with the elevation prompt path when the target is different.

/cc @isidorn

@deepak1556 deepak1556 added this to the August 2025 milestone Aug 7, 2025
@deepak1556 deepak1556 requested a review from joaomoreno August 7, 2025 12:57
@deepak1556 deepak1556 self-assigned this Aug 7, 2025
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