Hi Swift community!
I am Priyambada Roul. I'm incredibly excited to share what I've been working on over the past three months as part of Google Summer of Code 2025 with Swift.org, alongside my mentors, @cmcgee1024 @matthewbastien
My project focused on integrating Swiftly (Swift's toolchain manager) into the VS Code Swift extension.
The Problem We Solved
We've made switching toolchains easier with Swiftly, allowing you to install and switch between Swift versions without leaving VS Code.
-
Switch Swift versions with a single click
-
Install new toolchains without leaving VS Code
-
See real-time progress during installations
-
Automatically sync with project-specific Swift versions
What's New for Swift Developers
Swiftly VS Code Integration
The VS Code extension now provides an entirely seamless toolchain management experience:
-
We now support macOS too!
-
See your current Swift version in the VS Code status bar.
-
Click the version to switch between installed toolchains instantly.
-
Install any Swift version directly from VS Code with real-time progress.
-
Automatic detection of .swift-version files with prompts to switch
Enhanced Swiftly CLI
-
Swiftly now supports a machine-readable JSON output format.
-
Swiftly now reports toolchain installation progress updates in JSONL format
-
We have polished error reporting.
Things I learnt:
-
Making a VS Code extension. While I have experience with TypeScript from web development, the VS Code extension API and its development workflow are different from what I'm used to.
-
I understood the structure and distribution of Swift toolchains, as well as how different versions can coexist on the same system using symlinks, environment variables, and PATH manipulation, across both macOS and Linux.
-
The extension spawns Swiftly processes and reads their JSON output streams in real-time. This involved learning about IPC mechanisms, stdin/stdout buffering and process lifecycle management.
Future Work
While the core Swiftly integration is complete, we have several enhancements planned:
-
One-click, swiftly set up for new users.
-
More robust handling of edge cases
-
UI polishing
-
Windows support
I couldn't wrap this up without giving huge thanks to my incredible GSoC mentors,@cmcgee1024 and @matthewbastien - you both were absolutely amazing throughout this journey! Your patience with my endless questions (especially the fundamental ones at the start), your thoughtful code reviews, and your guidance on architectural decisions made all the difference. I also want to thank @award999 for your guidance through the PR suggestions.
Explore the Code
Want to see what we built? Check out the repositories:
-
VS Code Swift Extension: github.com/swiftlang/vscode-swift
-
Swiftly CLI: github.com/swiftlang/swiftly
I have linked all pull requests and technical details in my detailed project report, which provides an in-depth look into the specific changes.
This GSoC experience has been transformative. I came in as someone intimidated by large codebases, and I'm leaving with the confidence to tackle complex, multi-tool integrations. I'm excited to continue contributing to Swift community!
Thank you.