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

Editor: Autocomplete does not add parent's extender functions for child structs depending on order of declaration #2639

Open
ivan-mogilko opened this issue Dec 27, 2024 · 0 comments
Labels
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

Autocomplete does not display extender function of a parent struct for an instance of a child struct, if that extender function is declared after child struct was declared.

Example:

struct Parent
{
    int a;
};

import void FunctionEx1(this Parent);

struct Child extends Parent
{
};

import void FunctionEx2(this Parent);

In this case, AutoComplete will display FunctionEx1 as a member of Child, but not FunctionEx2.
The reason is that in AutoComplete code it only adds parent's members to Child structs when the Child struct is parsed, but not if any extenders are found later.

Expected

Autocomplete should show all Child members inherited from Parent, regardless of the order of declaration.

@ivan-mogilko ivan-mogilko added type: bug unexpected/erroneous behavior in the existing functionality what: editor related to the game editor context: ui/ux labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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