Skip to content

Conversation

@ace-of-aces
Copy link

@ace-of-aces ace-of-aces commented Dec 26, 2025

Closes #291, #474

This adds support for autocompletion inside the rules method of form requests.

Specifically, this implements the necessary logic to the completion registry for the classExtends and methodDefinition fields, which are already defined (but unused) in the tags() function of the validation completion provider.

Note

I implemented this with the help of an AI agent (Claude Opus 4.5). I tested this and reviewed the code, which I deemed to be consistent with other parts in the completion provider.

Also, I corrected the completion template for the after rule, which was missing the template braces around the placeholder.


Screenshots

Before:
Screenshot 2025-12-26 at 19 48 13

After:
Screenshot 2025-12-26 at 19 48 44

@N1ebieski
Copy link
Contributor

If accepted, this can be closed: #336

@ace-of-aces
Copy link
Author

Hey @N1ebieski, sorry that I just didn't find your open PR when doing a quick search😅

Happy with whatever PR will end up getting merged as they're basically doing the same with some minor differences :)

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.

[Feature]: Auto-completion of rules in form request

2 participants