Skip to content
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

Fix handler when install script makes an incomplete install #2106

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nagilson
Copy link
Member

@nagilson nagilson commented Jan 28, 2025

For #2059

@nagilson nagilson force-pushed the nagilson-fix-missing-dir branch from 281c44d to f320a62 Compare February 13, 2025 19:54
@@ -69,6 +70,13 @@ You will need to restart VS Code after these changes. If PowerShell is still not
windowsFullCommand = windowsFullCommand.replace('powershell.exe', powershellReference);
}


// The install script can leave behind a directory in an invalid install state. Make sure the executable is present at the very least.
if (this.fileUtilities.existsSync(installContext.installDir) && !this.fileUtilities.existsSync(path.join(installContext.installDir, getDotnetExecutable())))
Copy link
Member Author

Choose a reason for hiding this comment

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

What if it failed to write all of the binary? might wanna check that executing this also gives a 0 status code like dotnet --info or smth if it does exist.

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