yaegassy / coc-laravel

Laravel extension for coc.nvim
https://www.npmjs.com/package/@yaegassy/coc-laravel
MIT License
28 stars 2 forks source link

refactor: change php function completion to use php reflection api #9

Closed yaegassy closed 1 year ago

yaegassy commented 1 year ago

Up to now, function completion has been performed based on json files that have already been parsed by phpstorm-stubs in advance.

Analyze the phpstorm-stubs downloaded for coc-laravel with this change and create a list of completions. The download command has already been added. (:CocCommand laravel.stubs.download)

The details and documentation of completion items are now retrieved using PHP's REFPECTION API.

I had also prepared web-tree-sitter for PHPDoc, but removed the related packages and files since it is no longer needed to use the REFLECTION API from now on.