zielu / GitToolBox

GitToolBox IntelliJ plugin
GNU General Public License v3.0
604 stars 71 forks source link

[BUG] Respect Soft Wrap with Jetbrains Usage and Authors Feature (Code Vision) #496

Open stivens13 opened 11 months ago

stivens13 commented 11 months ago

Describe the bug Recently, Jetbrains introduced new feature - Code Vision - that introduces clickable labels for usages and authors for each function. GitToolBox has a checkmark to respect Soft Wraps and it does. However, at function name line with Code Vision, GitToolBox blame text is being shifted by the length of Code Vision width, thus breaking Soft Wrap

To Reproduce Steps to reproduce the behavior:

  1. Make sure Soft Wrap and Code Vision are enabled
  2. Go to any function name that has Usage/Authors label
  3. Notice horizontal scrollbar
  4. Scroll horizontally to the right
  5. Notice that Soft Wraps are broken

Expected behavior GitToolBox Blame inline should wrap at the edge of editor, respecting Soft Wrap

Plugin version 500.0.13+213 - Paid Version

IDE version GoLand 2023.2 Build #GO-232.8660.185, built on July 26, 2023 Runtime version: 17.0.7+7-b1000.6 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 13.4.1

Screenshots If applicable, add screenshots to help explain your problem.

image

Screenshot depicts the described problem. White vertical line represents current editor width - where Soft Wrap supposed to occur, but doesn't . Notice that Soft Wrap itself applies to code, but GitToolBox Blame text forces horizontal scroll to be enabled

zielu commented 11 months ago

Hi, I was going to revisit blame code, so I'll look into it.