I'm Lokesh.T.R from India. I'm a sophomore currently pursuing my bachelor's degree in Computer Science and Engineering in Vel Tech University, Chennai. I'm thrilled to share with you on what I have accomplished over the summer with my mentors @ahoppen and @adam-fowler for Google Summer of Code 2024.
Overview
Over the summer, we worked on adding support for expansion of Swift Macros in Visual Studio Code. Our project's main goal is to implement a code action in VS Code that allows users to view the generated contents of a Swift Macro.
Here's what it looks like to show the generated contents of a Swift Macro in a peeked editor when the "Expand Macro" Code Action is invoked by the user:
Bringing Semantic Functionality (such as jump-to-defintion, quick help on hover, Syntax Highlighting, etc.) to the macro expansion being previewed.
Allowing to perform the "Expand Macro" Code Action on a macro that is present in the generated macro expansion to support the expansion of nested macros.
And as a bonus, we also worked on supporting macro expansions in other LSP-based editors which by default cannot make use of the LSP extensions that we introduced.
This will be available with SourceKit-LSP bundled with Swift 6.1 and the next VS Code Swift Extension Release.
For the curious minds, This feature is available in the main branch of sourcekit-lsp and vscode-swift, right now.
Implementation Details
Please check out the full post in the SourceKit-LSP Category here:
Thanks & Gratitude
I offer my deepest gratitude to my mentors @ahoppen and @adam-fowler without whom this journey is impossible. GSoC is not only the work of me as a contributor but also the work of my mentors in guiding me and helping me out whenever possible.
If not for you two people, this project wouldn't be a success.
hey @lokeshtr
It was great to read your experience.
As a sophomore doing CS UG i am aiming to apply to a gsoc project in swift and rn unsure about how to proceed
like the stuff that you did was very new to me...
i am learning swift and iOS app development rn and want your opinions on how to proceed towards my goal
i wanted to ask what exactly you learnt before applying for gsoc and how did you approached problem selection
also any other insights would be great
Hello @lokeshtr
It was super insightful to read your experience.
I'm a Sophomore at IIT Patna, and am also aiming to apply for GSOC in Swift/MacOS development. I'm currently learning these technologies but want to contribute towards the open source community as much as possible. I would really love to hear from you how to align my goals w.r.t GSOC this summer.
Thank you.