Google Summer of Code 2025

Swift participated in Google Summer of Code 2025 with four accepted projects, focused on SourceKit-LSP, Swift Testing and VS Code. Here are the accepted projects and the project ideas we offered that year. Browse the other years on the GSoC page.

Discussions from this year are tagged gsoc-2025 on the Swift forums.

Accepted projects

Projects accepted for Swift in Google Summer of Code 2025, as announced on the Swift forums.

Improve the display of documentation during code completion in SourceKit-LSP

Contributor: Ahmed Elrefaey

Mentor: Hamish Knight

Blog: GSoC 2025 Showcase: Improved Code completion for Swift

Results: Improve the display of documentation during code completion in SourceKit-LSP

JNI mode for swift-java’s source jextract tool

Contributor: Mads Odgaard

Mentor: Konrad Malawski

Blog: GSoC 2025 Showcase: Extending Swift-Java Interoperability

Results: New JNI mode added to swift-java jextract tool!

Swiftly integration in VS Code

Contributor: Priyambada Roul

Mentors: Matthew Bastien, Chris McGee

Blog: GSoC 2025 Showcase: Swiftly support in VS Code

Results: Bringing Swiftly support to VS Code

Improved console output for Swift Testing

Contributor: Tien Quoc Bui

Mentor: Stuart Montgomery

Blog: GSoC 2025 Showcase: Improved Console Output for Swift Testing

Results: Improved Console Output for Swift Testing

Project ideas

Re-implement property wrappers with macros

Project size: 350 hours (large)

Estimated difficulty: Intermediate

Recommended skills

Description

Property wrappers feature is currently implemented purely within the compiler but with the addition of Swift Macros and init accessors it’s now possible to remove all ad-hoc code from the compiler and implement property wrappers by using existing features.

This work would remove a lot of property wrapper-specific code throughout the compiler - parsing, semantic analysis, SIL generation etc. which brings great benefits by facilitating code reuse, cleaning up the codebase and potentially fixing implementation corner cases. Macros and init accessors in their current state might not be sufficient to cover all of the property wrapper use scenarios, so the project is most likely going to require improving and expanding the aforementioned features as well.

Expected outcomes/benefits/deliverables

The outcome of this project is the complete removal of all property wrappers-specific code from the compiler. This benefits the Swift project in multiple areas - stability, testability and code health.

Potential mentors

Improve the display of documentation during code completion in SourceKit-LSP

Project size: 175 hours (medium)

Estimated difficulty: Intermediate

Recommended skills

Description

The Language Server Protocol (LSP) offers two rich ways of displaying documentation while invoking code completion: Every code completion item can have documentation associated with it and while completing a function signature, the editor can display the available overloads, parameter names and their documentation through signature help. Currently, SourceKit-LSP only displays the first line of an item’s documentation in the code completion results and does not provide any signature help.

This project would implement functionality to return the entire documentation for all code completion items and also implement the LSP signature help request. Both of these will require functionality to be added in SourceKit-LSP and the compiler’s code base, which determines the list of feasible code completion results.

Expected outcomes/benefits/deliverables

SourceKit-LSP will display more information and documentation about the code completion items it offers, allowing developers to pick the item that they are interested in more easily.

Potential mentors

Refactor sourcekitd to use Swift Concurrency

Project size: 175 hours (medium)

Estimated difficulty: Intermediate

Recommended skills

Description

sourcekitd is implemented in the Swift compiler’s repository to use the compiler’s understanding of Swift code to provide semantic functionality. It is currently implemented in C++. By refactoring its request handling and AST manager to Swift, we can take advantage of Swift’s concurrency safety, improving its data race safety, making it easier to reason about and maintain.

On macOS, sourcekitd is run as an XPC service, while on all other platforms, sourcekitd is run in the sourcekit-lsp process. As a stretch goal, refactoring the request handling would allow us to run sourcekitd in a separate process on Linux and Windows as well improving SourceKit-LSP’s resilience as crashes inside sourcekitd would not cause a crash of the LSP process itself.

Expected outcomes/benefits/deliverables

Improved concurrency-safety of sourcekitd and better maintainability.

Potential mentors

Add more refactoring actions to SourceKit-LSP

Project size: 90 hours (small)

Estimated difficulty: Intermediate

Recommended skills

Description

Refactoring actions assist a developer by automatically performing repetitive and mechanical tasks, such as renaming a variable. SourceKit-LSP already provides refactoring actions and this project would add new actions to SourceKit-LSP. A few new refactoring actions have already been proposed but this project is not necessarily limited to those ideas.

Expected outcomes/benefits/deliverables

A richer set of refactorings in SourceKit-LSP that aid developers in performing mechanical tasks.

Potential mentors

Qualified name lookup for swift-syntax

Project size: 350 hours (large)

Estimated difficulty: Intermediate

Recommended skills

Description

Qualified name lookup is the process by which a compiler resolves a reference A.f into a lookup for entities named f within A. In Swift, this can mean looking into the type A and all of its extensions, superclass, protocols, and so on to find visible members. The project involves building a new library to be integrated into the swift-syntax package that implements Swift’s qualified name lookup semantics, making it easy to build source tools that resolve names. The library will likely include a symbol table implementation that provides efficient lookup of a given name within a given type. It should also integrate with last year’s unqualified name lookup library project, to provide complete support for name lookup on Swift code processed with swift-syntax.

Expected outcomes/benefits/deliverables

Potential mentors

Swiftly Integration in VS Code

Project size: 175 hours (medium)

Estimated difficulty: Intermediate

Recommended skills

Description

Swiftly is a toolchain manager written in and built for Swift. In order to aid adoption in the Swift community, it would be beneficial to provide a rich editor integration with the existing Swift extension for VS Code. This editor integration should aid the user in installing Swiftly itself as well as with installing and selecting Swift toolchains. This will require some effort in Swiftly itself to provide a machine readable interface that any editor could use to manage Swift toolchain installations.

Expected outcomes/benefits/deliverables

Potential mentors

DocC Language Features in SourceKit-LSP

Project size: 175 hours (medium)

Estimated difficulty: Intermediate

Recommended skills

Description

SourceKit-LSP has recently added a feature to support DocC Live Preview for editors such as VS Code. This feature could be further improved by providing language features such as go to definition as well as diagnostics for invalid/missing symbol names.

Expected outcomes/benefits/deliverables

Potential mentors

Tutorial mode for the VS Code Swift extension

Project size: 90 hours (small)

Estimated difficulty: Intermediate

Recommended skills

Description

This project can possibly be combined with the Swiftly Integration in VS Code project and the Tutorial mode for Swift project. When submitting project application for both together, please then mark it as a medium (175 hours) project.

Right now there isn’t a whole lot of guidance on how to use the Swift extension for VS Code once it is installed. Apart from reading an article about it and the “Details” tab of the Swift extension in VS Code it’s up to the user to realize that a Swift toolchain will have to be installed and figure out the workflow to Build, Run, Test and Debug code. As well, people who are installing the extension could be new to programming and Swift in general. A tutorial mode that will show the features of the extension will be greatly beneficial for first time users.

The feature can possibly be implemented with VS Code Walkthrough mode or something similar to the CodeTour extension.

Expected outcomes/benefits/deliverables

Potential mentors

Tutorial mode for Swift in the VS Code Extension

Project size: 90 hours (small)

Estimated difficulty: Intermediate

Recommended skills

Description

This project can possibly be combined with the Swiftly Integration in VS Code project and the Tutorial mode for VS Code Swift project.

Many users who install the VS Code swift extension could be new to Swift and programming in general. A tutorial mode that will show features of the programming language could allow users to experiment with their programs interactively and greatly enhance their learning experience. This tutorial mode can include examples from the Swift Book, a VS Code version of the DocC tutorials, swift-testing tutorials and code formatting tutorials using swift-format.

The feature can possibly be implemented with VS Code Walkthrough mode or something similar to the CodeTour extension.

Expected outcomes/benefits/deliverables

Potential mentors

Improved console output for Swift Testing

Project size: 175 hours (medium)

Estimated difficulty: Intermediate

Recommended skills

Description

Enhance Swift Testing’s reporting of test results to the console/terminal. Consider adding features like live progress reporting, nested output reflecting suite hierarchy, test metadata (display names, tags), parameterized test arguments, and more terminal colors. Perhaps include user-configurable options. If time allows, implement several alternatives and present them to the community (and the Testing Workgroup) for consideration. Factor code as portably as possible to support many platforms, and so it could be incorporated into a supervisory “harness” process in the future.

Expected outcomes/benefits/deliverables

Potential mentors

Improved command line tool documentation

Project size: 175 hours (medium)

Estimated difficulty: Intermediate

Recommended skills

Description

Swift Argument Parser recently added a command plugin to generate documentation markup for a command line tool. This plugin could be improved by providing support for generating separate pages for each command and by leveraging additional markdown syntax to organize command line flags into sections and display possible values and default values.

Beyond the markdown output, this plugin could be further improved by generating a “symbol graph” that describe each command and its flags, options, and subcommands. By describing the commands’ structure, tools like Swift DocC can further customize the display of command line tool documentation, support links to individual flags, and allow developers to extend or override the documentation for individual flags in ways that isn’t overwritten when regenerating the documentation markup from the plugin. If time allows, prototype some enhancement to command line documentation in Swift DocC that leverage the information from the command symbol graph file.

Expected outcomes/benefits/deliverables

Potential mentors

Documentation coverage

Project size: 90 hours (small)

Estimated difficulty: Intermediate

Recommended skills

Description

Enhance Swift DocC’s experimental documentation coverage feature to write coverage metrics in a new extensible format that other tools can read and display. Define a few types of metrics—for example Boolean (has documentation: true/false), Fraction (2/3 parameters are documented), Percentage, etc.—for this format. Explore ideas for what documentation coverage information would be useful to emit. Explore ideas for how another tool could display that coverage information.

Expected outcomes/benefits/deliverables

Potential mentors

OpenAPI integration with DocC

Project size: 350 hours (large)

Estimated difficulty: Intermediate

Recommended skills

Description

OpenAPI is a standard for documenting HTTP services. It allows creating documents in YAML or JSON format that can be utilized by various tools to automate workflows, such as generating the required code for sending and receiving HTTP requests.

OpenAPI is known for its tooling to generate documentation, but in the Swift ecosystem, developers are already familiar with how DocC renders documentation for Swift and Objective-C APIs. To enhance consistency and improve the developer experience, we aim to extend DocC’s support to OpenAPI documents.

Expected outcomes/benefits/deliverables

As part of the Google Summer of Code project, the student will develop a library/tool that can generate DocC documentation from an OpenAPI document.

Strech goals:

Potential mentors

JNI mode for swift-java’s source jextract tool

Project size: 350 hours (large)

Estimated difficulty: Intermediate

Recommended skills

Description

The existing swift-java Java interoperability project currently supports both JNI and Java’s new Foreign Function & Memory API’s, however the latter source generator which works by analysis of existing Swift code, and emitting Java “accessors” to these currently only works with JDK 22+ because it uses FFM for its implementation. It would be possible–and beneficial for platforms where JDK 22+ is not available–to allow the jextract tool also operate in a limited functionality JNI mode.

This project would kickstart the work on a JNI mode for the jextract tool, allowing for calling for any Swift APIs from Java, using these generated Java accessor classes.

Expected outcomes/benefits/deliverables

Potential mentors