Skip to content

Autocompletion: Don't hide certain setters and getters#116776

Open
HolonProduction wants to merge 1 commit intogodotengine:masterfrom
HolonProduction:gdscript/completion-setters
Open

Autocompletion: Don't hide certain setters and getters#116776
HolonProduction wants to merge 1 commit intogodotengine:masterfrom
HolonProduction:gdscript/completion-setters

Conversation

@HolonProduction
Copy link
Member

Fixes #116717
Fixes #114832

Autocompletion filters out getters and setters to not clutter the list. However the filtering applied hides some important methods: indexed props are not easily accessible in other ways and so their getters and setter should be suggest. Also if a property is internal, we really should not hide its public setters and getters.

Sanity check: Is this the right place for fixing this, it's core/ after all?

p_methods is only used together with p_exclude_from_properties. p_exclude_from_properties is not exposed and only used in two places: autocompletion and listing methods for some picker dialog in the editor. So yeah this is a good place to fix this.

Due to the very limited audience of the parameter there really is no need for any more finegrained control as suggested in #116717 (comment)

@wjt I added you as co-author, since half of this PR is basically your suggested patch

Co-authored-by: Will Thompson <wjt@endlessaccess.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant