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

Line comments appear in annotations #2077

Closed
SHiLLySiT opened this issue Apr 20, 2023 · 0 comments
Closed

Line comments appear in annotations #2077

SHiLLySiT opened this issue Apr 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SHiLLySiT
Copy link

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Annotations

Expected Behaviour

Normal comments above a line shouldn't be included in annotations.

Actual Behaviour

Line comments appear in annotations.

Screenshot_62

Screenshot_63

Reproduction steps

  1. Enter the following code:
---@type number The number of apples
local numberOfApples = 0

-- start with 10 apples
numberOfApples = 10 
  1. Hover over numberOfApples and see that it includes both the type annotation and the line comment.

Additional Notes

No response

Log File

I was unable to locate a log file :(

@sumneko sumneko added the bug Something isn't working label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants