eclipse / lsp4e

Language Server Protocol support in Eclipse IDE
Eclipse Public License 2.0
57 stars 54 forks source link

Add spacing to inline type hints. Fixes #981 #982

Closed sebthom closed 2 months ago

sebthom commented 2 months ago

Adds a space separator between the inline type hint and the variable name.

Before this PR: image

After this PR: image

This is similar to what JDT does: https://github.com/eclipse-jdt/eclipse.jdt.ui/blob/6333016444d089418d28a0e5e331ae3545030d82/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/codemining/JavaMethodParameterCodeMining.java#L31