Skip to content

Fix for Blade::anonymousComponentPath with double colon #420

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 1 commit into
base: main
Choose a base branch
from

Conversation

N1ebieski
Copy link
Contributor

@N1ebieski N1ebieski commented Jul 9, 2025

Fixes #418

There is a bug with registering anonymous component paths in this line > https://github.com/laravel/vs-code-extension/blob/main/php-templates/blade-components.php#L185

If a prefix is present, then the extension uses single colon, but according to the Laravel documentation, anonymous components with a prefix use double colon, for example:

<x-dashboard::panel />

Caleb's Flux is a specific case, because he uses his own Compiler to compile something like this:

<flux:button />

This PR replaces a single colon to a double colon:

obraz

and adds support for Flux with an additonal key, so the extension recognizes its components in both forms:

obraz

obraz

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.

[Bug]: component namespace: extension only detects single colon, but throws error
1 participant