HaxeFoundation / HaxeFoundation/haxe

[display] var expressions in metas upset completion

Open
#7,993 3 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

I had some macros in haxe 3 project that used `var x: Type` expressions to specify a list of idents and types to use when generating fields.

For example
```haxe
@:event(var name: Type)
class Example {
}
```

While the code compiles, some weird side effects start happening in completion, for example, the field `name: Type` is suggested as if it were a field of other classes and macro-generated fields stop showing up in completion.

~~@nadako said vscode completion started hanging when trying the example~~

Here's a try-haxe: http://try-haxe.mrcdk.com/#F666c (Make sure to set haxe version to latest commit and try completion on line 13)

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.