HaxeFoundation / HaxeFoundation/haxe

[display] inconsistent go to definition behavior with `import as`

Open
#8,660 0 comments 1 reaction 0 assignees View on GitHub
bug feature-ide
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
import haxe.Json as Jason;

class Main {
static function main() {
var j:Jason;
Jason;
}
}
```

When invoking go to definition on the type hint, it takes you to the `import` statement. However, when invoking it on the expression in the line below, it takes you to `Json.hx`.

I think the behavior should be consistent here (preferably taking you to the import in both cases).

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.