Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0: AutoComplete registers extender attributes as extender functions #2638

Open
ivan-mogilko opened this issue Dec 27, 2024 · 0 comments
Open
Labels
ags 4 related to the ags4 development context: ui/ux type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor

Comments

@ivan-mogilko
Copy link
Contributor

Problem

Since in 4.0 the compiler supports extender attributes, the autocomplete should handle them correctly.

Example of script:

struct MyStruct
{
    int a;
};

readonly attribute int AttributeEx(this Parent);

What AutoComplete does - it registers AttributeEx as a extender function instead, meaning it displays a "extender function" icon instead of a "property" icon, and also suggests that it has a parameter list in a tooltip.

Expected

AutoComplete needs extra icon for "extender property", which combines "property" icon with a arrow, similar to how it's done for extender function icon which combines a "function" icon with a arrow.

Idk where these icons are from, if they are scintilla's, and there's no way to add a custom one, then at least it should use the "property" icon. But I suppose that the main problem is distinguishing extender attributes from extender function types when parsing for autocomplete.

@ivan-mogilko ivan-mogilko added type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor ags 4 related to the ags4 development labels Dec 27, 2024
@ivan-mogilko ivan-mogilko added this to the 4.0.0 (preliminary) milestone Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ags 4 related to the ags4 development context: ui/ux type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor
Projects
None yet
Development

No branches or pull requests

1 participant