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

Duplicated code lenses when you restart Metals #616

Open
ckipp01 opened this issue Oct 4, 2023 · 1 comment
Open

Duplicated code lenses when you restart Metals #616

ckipp01 opened this issue Oct 4, 2023 · 1 comment

Comments

@ckipp01
Copy link
Member

ckipp01 commented Oct 4, 2023

Describe the bug

When using the :MetalsRestartMetals command while being in a file that has code lenses you end up with duplicated lenses. For example when doing this in a test file a couple times I end up seeing this:

Screenshot 2023-10-04 at 15 32 27

I'm not sure if this is an issue with Neovim, or why exactly this is happening. One solution could just be that we clear the code lenses when a user uses this command, but I feel like that shouldn't be necessary. I checked and Metals isn't sending duplicates so it's like an old state is still there.

Expected behavior

I'd expect that when the client stops, the code lenses go away.

Operating system

macOS

Version of Metals

1.0.1+73-dfa965e9-SNAPSHOT

@ckipp01
Copy link
Member Author

ckipp01 commented Oct 4, 2023

Actually it seems like this is fixed in neovim/neovim#24903, but needs to wait until the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant