marlonfan / coc-phpls

🐭 php language server for coc.nvim
MIT License
212 stars 16 forks source link

全局变量提示?? #53

Closed ccoolsnake closed 3 years ago

ccoolsnake commented 4 years ago

问下,coc-phpls 是否支持显示 $_GET, $_POST, $_FILES 这类全局变量的提示??

cxgslegend commented 4 years ago

There is a language barrier here. So I apologize if I misunderstood your question (I am using google translate). But I think you are asking if coc-phpls can complete globals like $_GET. The answer to that is yes. I am getting completion for these keywords.

Screen Shot 2020-07-12 at 10 09 33 PM

Of course, I am using Laravel. So maybe it is just completing it because it saw it somewhere else in the Framework when it indexed the files. But even if that is true, worst case it won't work the first time you write one of these symbols.

Also, if it is the second case, I believe intelephense supports adding default symbols through stubs (Getting started page that has stubs section).

Best of luck!