Repository navigation
Only change the line height of the view line - #258454
Remco Haszing (remcohaszing) wants to merge 1 commit into
Conversation
9c3e081 to
d60ecdc
Compare
|
Apparently this works, but the line heights are not updated if the lines are affected by changes to line wrapping. I’m feeling a bit stuck on this and would really appreciate some help or feedback. |
d60ecdc to
82b218c
Compare
|
Hi Remco Haszing (@remcohaszing) thank you for this PR. I am not sure we should apply the line height only to the view line because as you mentioned if line wrapping is turned on, and you change the size of the window, then the decorations will change position and you would have to change the size of the line heights. This means the line heights would dynamically change as you resize the screen. This adds a whole layer of complexity to the work. Could we start off by opening an issue about this, and discussing it within the issue, how important of an issue this is, if its urgent, before writing this code and merging it? |
Previously, if a decoration specified a custom line height, this affected all viewlines that are covered by model line. Now the line height is only applied to the view lines that render the decoration. It is still possible to change the line height of an entire view line by setting the decoration option `isWholeLine`.
82b218c to
40aef2c
Compare
|
I had another look today after having taken a break from it and managed to fix the remaining issues. The reason I’m diving straight into the code, is because my client needs this. From their perspective this is a regression compared to my initial support for variable line heights. They currently depend on a fork, but ideally they won’t have to in the future. Note that it’s still possible to apply the special line height to the entire unwrapped line by using |
Previously, if a decoration specified a custom line height, this affected all viewlines that are covered by model line. Now the line height is only applied to the view lines that render the decoration.
It is still possible to change the line height of an entire view line by setting the decoration option
isWholeLine.Closes #249967
Closes #295179
cc Aiday Marlen Kyzy (@aiday-mar)