Skip to content

Add dynamic selectors to method completion#2617

Merged
Earthcomputer merged 3 commits intominecraft-dev:devfrom
Bawnorton:add-dynamic-selectors-to-completion
May 1, 2026
Merged

Add dynamic selectors to method completion#2617
Earthcomputer merged 3 commits intominecraft-dev:devfrom
Bawnorton:add-dynamic-selectors-to-completion

Conversation

@Bawnorton
Copy link
Copy Markdown
Contributor

Previously custom selectors do not appear in the method autocomplete suggestion window, this adds their ids to the autocomplete suggestions (below normal methods) and optionally populates additional annotations (I have implemented this for @Desc based on the handling of MIXINEXTRAS:EXPRESSION). I would perhaps prefer to put this in the selector definition itself rather than the parser, however, that would require a bit of a redesign of how custom selectors exist in mcdev so I left it as-is.

Example of what this looks like, where before neither @Desc nor @MixinSquared:Handler would appear as a suggestion

Screen.Recording.2026-05-01.at.12.28.12.mov

Comment thread src/main/kotlin/platform/mixin/reference/MixinSelectors.kt Outdated
Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
@Earthcomputer Earthcomputer merged commit 1d029a3 into minecraft-dev:dev May 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants