eclipse-tm4e / tm4e

TextMate support in Eclipse IDE
https://projects.eclipse.org/projects/technology.tm4e
Eclipse Public License 2.0
94 stars 57 forks source link

TextMate syntax coloring doesn't appear on first toggle split editor #827

Open sdaimwood opened 3 weeks ago

sdaimwood commented 3 weeks ago

Our organization maintains several language servers that use TM4E in an eclipse-based product. We've had customer reports and verified that when first using the Toggle Split Editor view, the newly opened window does not highlight until it is toggled on a second time.

Using the publicly available YAML editor as an example:

1) Open YAML source in the YAML Editor with Window/Editor/Toggle Split Editor (Vertical). The new second window will have no syntax highlighting.

2) Without closing, use same YAML source with Window/Editor/Toggle Split Editor (Horizontal). The new horizontally split window does have syntax highlighting.

3) Use same YAML source with Window/Editor/Toggle Split Editor (Vertical). The new vertically split screen will have syntax highlighting.

It appears that for each file, only the first invocation of split screen editing doesn't have highlighting, but every following invocation does.

Environment:

sebthom commented 2 weeks ago

I can reproduce this with the latest eclipse and tm4e release.

@mickaelistria any idea how to address this?