yaegassy / coc-blade Goto Github PK
View Code? Open in Web Editor NEWLaravel Blade Templates extension for coc.nvim. Provides "formatter", "linter", "completion" and more...
Home Page: https://www.npmjs.com/package/coc-blade
License: MIT License
Laravel Blade Templates extension for coc.nvim. Provides "formatter", "linter", "completion" and more...
Home Page: https://www.npmjs.com/package/coc-blade
License: MIT License
Because of blade-formatter using in coc-blade reads vscode-oniguruma's WASM on startup, CLI needs read WASM binary every time.
WASM size is about 500kb but its I/O / Initialization process impacts formatting performance so the cost invoke CLI every time is high.
Once worker loads WASM binary, it keeps WASM on memory until vim finished.
Once WASM cache load into memory, it will gain about 10x ~ 20x times faster throughput than CLI
The following file shows an error:
|6 col 2-3 error| [bladeParser BLADE_002] Unpaired condition control structure [E]
{{-- foo.blade.php --}}
@props(['model'])
@can('update', $model)
update
@else
any
@endcan
But I think that is a valid blade syntax
When use version >= 0.18.8, I got error when format the code.
0.18.7 is the last success version.
I don't know it is a coc-blade issue? or a blade-formatter issue?
THX
########## blade-formatter
TypeError: Y is not a function
I think that a snippet for @dd
directive could be awesome suggested by b:dd~
(similar to b:dump~
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.