Closed yoannfleurydev closed 5 years ago
Or show the comment with codelens above the line
I think it would be great to have the ability to add comments to a line when highlighted. It could be rendered out similar to how the GitLens extension displays the most recent commit on that line.
Thanks @yoannfleurydev for opening this issue and everyone that has provided input as well. We've now implemented this to show the comment on hover. We're open to looking into other ways of showing the comments such as the suggested codelens approach in the future.
It has now been added in #68. The plan is to publish this in version 0.1.5
Also, as @parithon mentioned on stream today, it might not be best to show these comments in a codelens type view since that will automatically be visible and we may not want to show inappropriate comments. Having them "hidden" in the hover view helps prevent this we thinks 😄
I do not know if it is possible with VS Code, but it could be great to have the following:
!line 9 A comment
A comment
.