-
Notifications
You must be signed in to change notification settings - Fork 5
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
associate blade files with html #7
Comments
That’s odd. Can you paste your vexatious vscode settings that is causing
the issue?
What do you mean by „breaking“ exactly?
On Sun 5. Dec 2021 at 19:14, Steve Beaudry ***@***.***> wrote:
It looks like the extension breaks if you associate blade.php files with
HTML in settings. I do this so the markup is color-coded like HTML in the
components.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNPA5GSB3UFGEZZOCAAMCLUPOTXLANCNFSM5JNBMWYQ>
.
--
Krishan König
Website <https://bitmate.dev/> | Github <https://github.com/naoray> |
Twitter <https://twitter.com/NaorayKroaths>
|
Sure thing, it's right in settings.json
When it's there, the HTML inside my Blade component is colored to match HTML markup, but I can't click any of the |
Could also paste your folder structure for the resources folder and which
component you are referring to.
I m currently not on my laptop so I can’t check, but I also use blade files
with the right markup and it works for me
On Sun 5. Dec 2021 at 19:54, Steve Beaudry ***@***.***> wrote:
Sure thing, it's right in settings.json
"files.associations": {"*blade.php": "html"}
When it's there, the HTML inside my Blade component is colored to match
HTML markup, but I can't click any of the <x-component> tags. When it's
not, I can click them, but the HTML is all plain white text.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNPA5GQNKTZGWB3UMZ6Y7LUPOYQHANCNFSM5JNBMWYQ>
.
--
Krishan König
Website <https://bitmate.dev/> | Github <https://github.com/naoray> |
Twitter <https://twitter.com/NaorayKroaths>
|
@lordsteve I was able to reproduce the bug, but couldn't figure out why exactly this is happening. As I said before, I don't have this As a workaround I'd highly recommend installing the following blade highlighting extension. While you are at it, you should also consider using Laravel Blade Formatter extension. Hope that helps for now. If you want and have the time to look into the cause of this issue I'd highly appreciate it. Otherwise I'd probably sit it here for a bit until more ppl complain. |
This error is related to this lines: laravel-goto-components/src/extension.ts Lines 8 to 10 in 976dee3
This is where the Hover and Link provider are registered for But I do not know how to fix it. Most likely, there should be a way to determine the association of the blade file with html in order to register these providers for html files, or even an association of files by extension. A "quick" solution may be to register providers for both Because these methods take the first parameter DocumentSelector which can be DocumentFilter, we can try to use it and pass an object of the object:
But I do not know if it will work |
It looks like the extension breaks if you associate blade.php files with HTML in settings. I do this so the markup is color-coded like HTML in the components.
The text was updated successfully, but these errors were encountered: