Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Recent change" information appears in the middle of the file in addition to above the source code. #853

Closed
KerimG opened this issue Sep 18, 2019 · 6 comments

Comments

@KerimG
Copy link

KerimG commented Sep 18, 2019

For some reason in one of my files GitLens shows the last file modification information not only above the source code but also right in the middle of it between line 5 and 6

https://i.imgur.com/XEDfujw.png

  • GitLens Version: 9.9.3
  • VSCode Version: 1,38,1
  • OS Version: Windows NT x64 10.0.18362

Steps to Reproduce:

  1. I don't know
  2. It's only this one file that's affected
  3. I was able to reproduce it on a different computer by simply opening the repository and the file
@KerimG
Copy link
Author

KerimG commented Sep 18, 2019

I think the class definition is what causes this issue. But only if the closing curly brace isn't on the same line as the opening one. This is really strange.

2019-09-18 10_28_07-● index js - learn-react - Visual Studio Code

@KerimG KerimG changed the title File modification information appears in the middle of the file in addition to above the source code. "Recent change" information appears in the middle of the file in addition to above the source code. Sep 19, 2019
@KerimG
Copy link
Author

KerimG commented Sep 19, 2019

Might be related to #371

@eamodio
Copy link
Member

eamodio commented Sep 19, 2019

@KerimG That is as-designed. GitLens adds git code lens to the top of the file and on code blocks.

You can easily configure where these show up via, GitLens: Open Settings from the command palette:

image

@KerimG
Copy link
Author

KerimG commented Sep 19, 2019

Oho! I've never noticed it before so I thought that it's a rendering bug.
Thank you and I'm sorry for the pointless issue post!

@KerimG KerimG closed this as completed Sep 19, 2019
@eamodio
Copy link
Member

eamodio commented Sep 19, 2019

No worries at all! Glad to help.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants