An open API service indexing awesome lists of open source software.

https://github.com/angelozerr/codelens-eclipse

POC to study how to implement CodeLens with Eclipse StyledText
https://github.com/angelozerr/codelens-eclipse

codelens eclipse styledtext

Last synced: 8 months ago
JSON representation

POC to study how to implement CodeLens with Eclipse StyledText

Awesome Lists containing this project

README

          

# codelens-eclipse

[![Build Status](https://secure.travis-ci.org/angelozerr/codelens-eclipse.png)](http://travis-ci.org/angelozerr/codelens-eclipse)

It exists today 2 bugs for implementing CodeLens inside Eclipse: bug [508458](https://bugs.eclipse.org/bugs/show_bug.cgi?id=508458) and [501546](https://bugs.eclipse.org/bugs/show_bug.cgi?id=501546).

Today Javassist is required because there are 2 problems in Eclipse Platform:

* bug with line numbers. See bug [481968](https://bugs.eclipse.org/bugs/show_bug.cgi?id=481968)
* drawing CodeLens update line spacing of the line. Today StyledTExt doesn't provide this feature. See bug [522020](https://bugs.eclipse.org/bugs/show_bug.cgi?id=522020)

This project is a POC to study how to implement CodeLens with Eclipse StyledText

Here a demo with

* `TypeScript` with [typescript.java](https://github.com/angelozerr/typescript.java) :

![CodeLens TypeScript Demo](CodeLensTypeScriptDemo.gif)

* `Java` with `JDT Java Editor` :

![CodeLens JDT Demo](CodeLensJDTDemo.gif)

* `Java` with [lsp4e Java Editor](https://github.com/eclipselabs/language-servers-for-eclipse/tree/master/org.eclipse.lsp4e.java) which uses Java Language Server of JDT :

![CodeLens lsp4e Demo](CodeLensLSP4e.png)

Here a demo with the current work with StyledText where zone are added:

![CodeLens StyledText demo](CodeLensStyledText.gif)