GSoC 2025 Showcase: Swiftly support in VS Code
Another successful year of Swift participation in Google Summer of Code recently came to an end, and we’d like to shine some light on the projects and work accomplished!
Summer of Code is an annual program, organized by Google, which provides hands-on experience for newcomers contributing to open source projects.
In this series of four blog posts, we’ll highlight each of the Summer of Code contributors and their projects. You can navigate between the posts using these convenient links:
- Bringing Swiftly support to VS Code (this post)
- JNI mode for swift-java’s source jextract tool (coming soon)
- Improved display of documentation during code completion in SourceKit-LSP (coming soon)
- Improved console output for Swift Testing (coming soon)
Each GSoC contributor has shared a writeup about their project and experience in the program on the forums. The first project we’re featuring on the blog brought Swiftly support to Visual Studio Code, contributed by Priyambada Roul. To learn more, you can read the full post on the Swift forums.
Bringing Swiftly support to VS Code
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, Chris McGee and Matthew Bastien.
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. Developers can now:
- 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



This experience is already shipping in the latest update of the VS Code extension, so you can try it yourself now!
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.
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!