Skip to content

Conversation

@plemarquand
Copy link
Contributor

Description

When a folder is added to the workspace context we were awaiting the makeDebugConfigurations method. This method generates launch configurations in the launch.json. If the method finds it needs to update existing launch configurations, it puts of a warning message dialog prompting the user for action.

Because we were awaiting this method, the dialog blocks folder addition and in turn prevents sourcekit-lsp and other extension features from activating for the folder until the dialog is dismissed.

Because nothing relies on the result of makeDebugConfigurations, simply kick off the work but don't await it.

Issue: #1912

Tasks

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

When a folder is added to the workspace context we were awaiting the
`makeDebugConfigurations` method. This method generates launch
configurations in the launch.json. If the method finds it needs to
update existing launch configurations, it puts of a warning message
dialog prompting the user for action.

Because we were awaiting this method, the dialog blocks folder addition
and in turn prevents sourcekit-lsp and other extension features from
activating for the folder until the dialog is dismissed.

Because nothing relies on the result of `makeDebugConfigurations`,
simply kick off the work but don't await it.

Issue: swiftlang#1912
@plemarquand plemarquand merged commit 43d8927 into swiftlang:main Nov 4, 2025
25 checks passed
@plemarquand plemarquand deleted the dont-block-for-debug-configs branch November 4, 2025 18:47
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.

2 participants