Can The Language Server Protocol Handle Dependent Types?
Master Project of Willem Stuijt Giacaman


Abstract

The Language Server Protocol (LSP) is a protocol that standardizes the way Integrated Development Environments (IDEs) and text editors communicate with language servers to provide language-specific features like autocompletion, go-to-definition, and diagnostics. While LSP has been widely adopted by mainstream programming languages, its adoption in dependently typed languages has been slower due to the unique challenges posed by their complex type systems and interactive theorem proving capabilities. This thesis explores the potential of LSP for enhancing the development of dependently typed programs, focusing on the Agda programming language. We present the implementation of a prototype LSP server for Agda that leverages scope checking to provide fast and responsive IDE features. We evaluate the performance of the prototype and compare its feature completeness with existing Agda development tools. Our findings demonstrate that scope checking can serve as a foundation for implementing efficient LSP features in Agda, offering a promising direction for improving the tooling and overall development experience for dependently typed languages.

Thesis

https://repository.tudelft.nl/record/uuid:3fdcf54e-ecca-4ae7-be56-bc414217e381


Can The Language Server Protocol Handle Dependent Types?

Student: Willem Stuijt Giacaman
Supervisor(s): Jesper Cockx, Daniƫl Pelsmaker
Defended: June 26, 2024