Skip to content

Add component properties from the @props directive to the repository #367

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

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

N1ebieski
Copy link
Contributor

@N1ebieski N1ebieski commented Apr 13, 2025

This PR adds component properties from the @props directive to the repository.

For example, the component:

component

And its properties in the hover:

hover

The feature works only if the nikic/php-parser is installed in the application. Otherwise, skips the property search.

If the spatie/fork is installed, then the search is performed in parallel (by Laravel Concurrency). Otherwise, the search is synchronous. BTW, I don't know if the performance will be enough with a large number of components :/ It needs more testing.

If PR is accepted, this feature will be available for use in attributes autocompletion #366

@N1ebieski N1ebieski marked this pull request as ready for review April 13, 2025 16:17
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.

1 participant