Pelsmaeker, Daniel A. A. (2018). “Portable Editor Services”
Implementing the syntax and semantics of a new (domain-specific) programming language is a lot of work, which is worsened by the additional work needed to add support for the language to an editor such as Eclipse or VS Code. Lack of such support can impede language usability and adoption, as developers prefer different editors. However, supporting m editors for n languages requires m × n implementations to be built and maintained, which is known as the IDE portability problem. Portable editor services aim to reduce this to m + n implementations, which leads to the main question of this thesis: how can we make the editor services of languages portable across editors?
Language definitions made in the Spoofax language workbench can automatically expose their editor services in any editor that Spoofax supports. Therefore, we evaluate the portability of Spoofax Core, the editor-agnostic core of Spoofax, through an implementation of the workbench in the IntelliJ editor, and discuss the challenges we faced.
To get portability for editor services of languages in general, we first investigate how editor services can be added to the most popular editors, and explore their features, documentation, and application programming interfaces. From this, we derive a platform-agnostic model for portable editor services: AESI, the Adaptable Editor Services Interface. AESI describes the maximum set of common editor service features supported by the editors we investigated, while at the same time imposing minimal requirements upon any implementation of these editor services.
We evaluate AESI by providing two language implementations, and adapting AESI to Eclipse, IntelliJ, and VS Code. Finally, we compare AESI with other solutions to the IDE portability problem, such as Language Server Protocol and Monto.
Portable Editor Services — Master Thesis