Skip to content

Comments incorrectly appended to hovered functions #310

@ArchLand64

Description

@ArchLand64

A common pattern that I do in my code is use large comments to organize all the different types of functions that I write. My problem is that those large comments are incorrectly appended to hovered function documentation, as boxed in red below.
image

I expect only the comment directly above the function to be highlighted. In the case of the above picture, I only want to see "Does physics simulation".

Here is the example code that has the problem:

--[[
==========================Math Functions==========================
]]

--[[
	Helps do math for physics
]]
local function Add(a: number, b: number): number
	return a + b
end

--[[
==========================Physics Functions==========================
]]

--[[
	Does physics simulation
]]
local function _Simulate(a: number, b: number): number
	return Add(a, b) * Add(a, b)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions