HaxeFoundation / HaxeFoundation/haxe

[display] completion features in macro classes

Open
#8,001 7 comments 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

Display features don't work very well with macro classes.

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

static macro function foo() {
macro class {
var test:Int;

function bar() {
test;
}
}
return macro {};
}
}
```

- hovering over anything in the class highlights the whole thing with `Array` (?)

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

- toplevel completion in `bar()` works, but not correctly (`test` doesn't show up for instance)
- find references on `test`'s usage instead finds random results (#7961)

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.