HaxeFoundation / HaxeFoundation/haxe

[display] hover reports type parameters as classes

Open
#8,674 1 comment 0 reactions 1 assignee Claimed by @Simn View on GitHub
bug feature-ide
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

This type parameter is printed as a `class` because Haxe reports `item.args.kind` as `DisplayModuleTypeKind.Class`.

![](https://i.imgur.com/mBOchkB.png)

```haxe
class Main {
static function main() {}
}
```

It would be more fitting `DisplayItemKind.TypeParameter` instead of `Type`, which would solve this. Hover probably doesn't use that because it was added relatively late.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.