phpactor / coc-phpactor

Phpactor CoC Extension

Home Page:https://github.com/phpactor/phpactor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to complete available options

przepompownia opened this issue · comments

Before a while I noticed that the indexer scans files within ./var so I went to exclude it. Before I saw that I can pass configuration. It is good thing but still requires browsing the documentation.

We could expose all available options in suggestions. It seems to be possible:
image
https://github.com/neoclide/coc-tsserver/blob/master/package.json#L142

Exposing all options (reasonable in this context) allow make it more user-friendly and show the power of whole tool.

I wanted to make PR with any working example but I did not found how to add coc-phpactor as a node module with sources within extensions directory.

Yes - we can do that - but - the problem is that there are lots of them.

I would only add the most common options here (e.g. the include/exclude paths etc). We can now also generate the schema (the documentation is generated). But that requires more thought again.

Apparently you can add the extension to the RTP and it should just work (I haven't tried it, I actually just edited it in the extensions directory and copied it to the repo 👀 ).

For vscode I just symlinked the repository to .vscode/extensions - maybe something similar also works.

Phpactor now ships with phpactor.schema.json which could be used to generate the configuration here, the problem would be ensuring that it remains in sync

I dropped using CoC about year ago and no one else is interested in it here so let's close this issue.

I think it's still valid if somebody wanted to pick up maintainence of this