Skip to content

Cleanup extension activation #1491

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

Merged

Conversation

plemarquand
Copy link
Contributor

Refactor the extension activation method such that it only starts up the necessary services and registers their disposables for extension deactivation. The startup order of services has been tweaked slightly so that it will fail fast if the toolchain is not configured properly. Fixes a few services that were registred for disposal twice.

Fixes up registerDebugger so that toggling the setting works immediately instead of silently requiring an extension restart before taking effect.

Refactor the extension activation method such that it only starts up the
necessary services and registers their disposables for extension
deactivation. The startup order of services has been tweaked slightly so
that it will fail fast if the toolchain is not configured properly.
Fixes a few services that were registred for disposal twice.

Fixes up `registerDebugger` so that toggling the setting works
immediately instead of silently requiring an extension restart before
taking effect.
@plemarquand plemarquand force-pushed the cleanup-extension-activation branch from 34b4500 to 509d246 Compare April 17, 2025 15:34
@plemarquand plemarquand merged commit a1a2a72 into swiftlang:main Apr 17, 2025
16 checks passed
@plemarquand plemarquand deleted the cleanup-extension-activation branch April 17, 2025 18:42
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