GitHub user harshaindunil added a comment to the discussion: CodeLens-style 
reference count hint to the NetBeans Java editor.

thanks, I appreciate the feedback.

for the virtual text above part, I implemented it in the swing editor rendering 
layer rather than inserting real lines into the document. The hint is painted 
as an above, line block in the editor view, so it is only visual and does not 
become part of the file contents.

Because of that, line numbers and actions like _Go to Line_ should still map to 
the real source lines, not to the reference hint. So if the declaration is on 
line 3, “Go to Line 3” should still jump to that declaration line.

I also agree with your VS Code comparison. The hint should not behave like a 
new full line starting at column 1. It should visually belong to the 
declaration and align with the code start, not replace the actual line start or 
interfere with line numbering. I have already adjusted the current 
implementation in that direction.

GitHub link: 
https://github.com/apache/netbeans/discussions/9318#discussioncomment-16669287

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to