Skip to content

Only use the context key for enabling the "swift.switchPlatform" command #1567

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

matthewbastien
Copy link
Member

It appears that the isMac context key provided by VS Code does not work the way we expect when running in a remote extension host. Update the logic for the swift.switchPlatformAvailable context key to check for the active platform and use that instead.

Issue: #1363

Copy link
Contributor

@rbenegal rbenegal left a comment

Choose a reason for hiding this comment

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

Great find thanks!

@matthewbastien matthewbastien merged commit 57aa572 into swiftlang:main May 20, 2025
18 checks passed
@matthewbastien matthewbastien deleted the target-platform-remote-ssh branch May 20, 2025 20:37
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.

3 participants