Skip to content

Improve handling misconfigured Swift toolchain #1801

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 3 commits into
base: main
Choose a base branch
from

Conversation

plemarquand
Copy link
Contributor

@plemarquand plemarquand commented Aug 22, 2025

Description

This patch makes a few improvements around handling a misconfigured toolchain.

  • Register the Select Toolchain command before prompting the user with an error dialog during extension activation. There was a button in the dialog to Select Toolchain, but the command wasn't registered yet so they'd get an error.
  • Prompt the user with this same error dialog if they have a misconfigured toolchain for a specific folder. Typically this happens when the user adds a folder to an existing workspace, and that folder has a misconfigured toolchain in the .vscode/settings.json file.

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

This patch makes a few improvements around handling a misconfigured
toolchain.
- Register the Select Toolchain command before prompting the user with
  an error dialog during extension activation. There was a button in the
  dialog to Select Toolchain, but the command wasn't registered yet so
  they'd get an error.
- Prompt the user with this same error dialog if they have a
  misconfigured toolchain for a specific folder. Typically this happens
  when the user adds a folder to an existing workspace, and that folder
  has a misconfigured toolchain in the `.vscode/settings.json` file.
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