Skip to content

Type definition breaks LSP hover #2169

Closed
@xsebek

Description

Describe the bug

A type definition breaks LSP hover.

To Reproduce

Create a file color.sw:

tydef Color = Bool end
def black = false end
def red = true end  // hover on red or true

any hover produces just:

tydef Color = Bool end

def black = false end

def red = true end

A type synonym definition.

But without the tydef:

red: Bool
true: Bool
A boolean literal.

Expected behavior

LSP should descend into tydef.

Screenshots

Screenshot 2024-10-12 at 1 54 07 PM

Additional context

Discovered in #2161.

Metadata

Assignees

Labels

BugThe observed behaviour is incorrect or unexpected.L-Language ServerIssues relating to the LSP implementation that talks to editors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions