Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions _data/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,12 @@ mitchellallison:
github: mitchellallison
about: "Mitchell Allison works on Distributed Systems in Swift at Apple."

priyambada:
name: Priyambada Roul
email: priyaroul99@gmail.com
github: roulpriya
about: Priyambada is a software developer based in Bangalore, working at Cashfree Payments, a leading payment processor in India. Shen she's not coding, she enjoys Bharatanatyam dance, painting, sculpting with clay, and experimenting with side projects on GitHub.

heckj:
name: Joe Heck
email: j_heck@apple.com
Expand Down
87 changes: 87 additions & 0 deletions _posts/2025-11-NN-swift-gsoc-2025-highlight-1-vscode-swiftly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
layout: new-layouts/post
published: true
date: 2025-02-NN 10:00:00
title: 'Swift GSoC 2025 highlight: Swiftly (Swift installer) support in Visual Studio Code
author: [ktoso, priyambada]
category: "Community"
---
Another year of successful Swift participation in [Google Summer of Code](https://summerofcode.withgoogle.com) 2025 came to an end recently, and this year we'd like to shine some light on the projects and work acomplished during the summer!

Summer of Code is an annual program, organized by Google, which provides hands-on experience for newcomers contributing
to open source projects. Participants usually are students, but do not have to be.

In this series of four 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](2025-11-NN-swift-gsoc-2025-highlight-2-swift-java-jextract-jni-mode.md)
- [Improve the display of documentation during code completion in SourceKit-LSP](2025-11-NN-swift-gsoc-2025-highlight-3-vscode-swift-lsp-documentation.md)
- [Improved Console Output for Swift Testing](2025-11-NN-swift-gsoc-2025-highlight-4-swift-testing-output.md)

What follows, is a shortened writeup about their project and experience by the GSoC contributors.
If you'd like to learn more, please check out the full version of their posts on the Swift forums (linked below)!

---

## 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, @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.

1. **Switch Swift versions** with a single click
2. **Install new toolchains** without leaving VS Code
3. **See real-time progress** during installations
4. **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.

![](/assets/images/gsoc-25/swiftly-1.jpg)

![](/assets/images/gsoc-25/swiftly-2.jpg)

![](/assets/images/gsoc-25/swiftly-3.jpg)

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](https://github.com/swiftlang/vscode-swift)
* **Swiftly CLI**: [github.com/swiftlang/swiftly](https://github.com/swiftlang/swiftly)

I have linked all pull requests and technical details in my **[detailed project report](https://docs.google.com/document/d/1Mnb9ybmVkpL6pAgrpMbSg6EV3owA2rz_FgltvAXdnUE/edit?tab=t.0)**, 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!


---
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
---
---

Remove horizontal ruler


If you'd like to learn more about this project, please [check out the full post on the Swift forums](https://forums.swift.org/t/gsoc-2025-bringing-swiftly-support-to-vs-code/81886)!
Binary file added assets/images/gsoc-25/swiftly-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/gsoc-25/swiftly-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/gsoc-25/swiftly-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.