donkirkby / live-py-plugin

Live coding in Python with PyCharm, Emacs, Sublime Text, or even a browser
https://donkirkby.github.io/live-py-plugin
MIT License
290 stars 57 forks source link

Code inlay hints break alignment #481

Closed donkirkby closed 1 year ago

donkirkby commented 1 year ago

What I did

Opened a file with Git history and functions or classes. Started live coding display.

What happened

Each function, method, or class has the main author displayed above it. Unfortunately, each of those adds a fake line to the code display. The live coding display doesn't know about the fake lines, so the alignment is off between the two windows.

What I wanted to happen

The two windows should stay aligned, even with the fake lines added.

My environment

Describe the versions of everything you were using:

Workaround

Until this is fixed, you can avoid the problem by disabling the inlay hints.

  1. Choose File: Settings...
  2. Go to Editor: Inlay Hints.
  3. Turn off Code vision: Code author.
  4. Click OK.
donkirkby commented 1 year ago

Try implementing InlayHintsProvider.

donkirkby commented 1 year ago

I opened a discussion in IntelliJ's support forum.