de-jcup / eclipse-yaml-editor

Eclipse YAML editor
https://marketplace.eclipse.org/content/yaml-editor
Apache License 2.0
34 stars 10 forks source link

Comments starting at beginning of line break folding #109

Open alexmarinn opened 2 years ago

alexmarinn commented 2 years ago
items:
    - part_no:   A4786
      descrip:   Water Bucket (Filled)
# This comment breaks folding - folding starts on this line instead of the "items" line above
      price:     1.47
      quantity:  4
de-jcup commented 2 years ago

I fresh installed on eclipse 2021-12 Yaml-Editor 1.8.0 and I got following: image

So I cannot reproduce your problem.

alexmarinn commented 2 years ago

Thanks for looking into this.

I see no folding at all in your snapshot, is this expected?

Do you have the "New editors have code folding enabled" preference set? (folding seems to be off by default)

Here's what I see on my end (running 1.8.0 on 2021-09): image

de-jcup commented 2 years ago

Ah - now I see the problem. You are not talking about the outline but the editor folding... sorry..

I have folding in editor turned off ( I always want to see all... I integrated the folding only because some people asked me to implement).

After trying to enable the folding I was stuck - at my Linux machine the folding does no longer appear at all... (eclipse 2021-12) Tried with older eclipse (2021-06) and 1.8.0 editor .

After this I tried out 2021-12 with 1.8.0 editor under windows. Even this does not work at all (no folding appears)

Which version of the editor do you currently use?