laravel-blade-snippets-vscode: Blade syntax broken with VSCode 1.20.0 release
With the new VSCode update, things seems to be pretty broken with this extension right now as this screenshot suggests :

Here’s the same screenshot with the PHP syntax enabled :

Not only does this shows how the syntax is affected, this also means that other utilities are broken as well : snippets and autocompletion is also broken when you are located in the broken part of the syntax.
Take note that this screenshot tries to show that the above snippet works, while the one in yellow show No suggestions.

About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 33
- Comments: 26 (6 by maintainers)
Just got home from vacation. I’ll take a look see if I can fix the issue soon.
As a temporary solution you can add this to your settings until a fix comes out:
No where near perfect but it just makes blade files use HTML syntax.
Yup same here, all fouled up.
Tidied up a transitional version:laravel-blade-1.13.0.vsix.zip
While, I switched to https://github.com/cjhowe7/laravel-blade-vscode
@tiansin’s fix has been pushed to @onecentlin’s branch with the fix included to resolve this issue.
The discussion about server problems can be discussed in the relevant issue (#44).
Another big thanks to @tiansin! 😃
@V-ed Now there is a more important update, hoping to participate in the test, an increase of support for the style of the view file and script auto-completion, and support jquery,thank you very much.
laravel-blade-1.13.0.vsix
I thought it was only me, i see that i have company. I looked for other blade extensions but did not find any that i like. I hope this get fixed soon
hope in the next update for fix this issue, they also add javascript jquery auto completion within script tag just like in HTML and PHP files.
For me, this happened because I had conflicting Laravel Blade Snippet extensions.
I uninstalled them all, and re-installed https://github.com/onecentlin/laravel-blade-snippets-vscode.
It’s fixed now.
@onecentlin
Error: Cannot find module '/Users/badalsurana/.vscode/extensions/onecentlin.laravel-blade-1.14.0/server/out/htmlServerMain.js'I guess it may not compile the server code, #44 In the plugin code directory,add the following steps to try.
I recorded an animation compiled on a windows system because the server is a standalone module.
Seems to take a bit long so I also switched to https://marketplace.visualstudio.com/items?itemName=cjhowe7.laravel-blade
@ariefadjie I was skeptical about this extension since the issue cjhowe7/laravel-blade-vscode#1 is currently opened, but I tried it nonetheless and this one does work.
Keep in mind that this means you will need to disable @onecentlin’s extension as it uses the same language id (
blade) for the syntax, so that’ll make a conflict. That also means loosing the snippets, the formatter and some other neat features @onecentlin added to his extension, but personally, the syntax is more important for me - you’ll need to see if it works for your setup.Well, this is working out for now - thanks @ariefadjie!