vim-lsc
vim-lsc copied to clipboard
intelephense exclude files
I am tyring to exclude the files the appear from /usr/local/lib/node_modules/intelephense/
running LSClientWorkspaceSymbol. I have tried the following:
let g:lsc_server_commands = {
\ 'php': {
\ 'command': 'intelephense --stdio',
\ 'message_hooks': {
\ 'initialize': {
\ 'initializationOptions': {
\ 'storagePath': '/tmp/intelephense'
\ },
\ },
\ 'workspace_config': {
\ 'intelephense.files.exclude': ['**/node_modules/**']
\ },
\ },
\ },
\ }
I have used a few different configurations and had no success. Can anyone point me in the direction of what is going on here?
- Why are these files showing up in my workspace?
- How do I get rid of them?
- How do I use the 'Configuration Options' listed on intelephense-docs to exclude certain files?
- Is this a problem with vim-lsc or intlephense?
We could consider adding a client side filter for these, the better solution would hopefully be server side.
It does look like your config may be a bit off - you have workspace_config
nested under message_hooks
, but it should be at the same level.
let g:lsc_server_commands = {
\ 'php': {
\ 'command': 'intelephense --stdio',
\ 'message_hooks': {
\ 'initialize': {
\ 'initializationOptions': {
\ 'storagePath': '/tmp/intelephense'
\ },
\ },
\ },
\ 'workspace_config': {
\ 'intelephense.files.exclude': ['**/node_modules/**']
\ },
\ },
\}