php-language-server
php-language-server copied to clipboard
AutoCompletion stops working after writing "function"
I am using php-language-server with Monaco-languageClient and connected the php-language-server over process io. Initially, when the editor load autocompletion works fine but as soon as I type "function" keyword, the completion stops working. And textdocument/completion call returning an empty list. Also, when making any change in the editor publishDiagnostics message also not coming from language server. Please find the screenshots for the same:
Initially, when the completion working properly:

After writing "function" completion, publishDiagnostics stops:

I also tried using vscode-php-intellisense in the vscode editor. But there sometime same issue coming and sometimes it works fine.
Any updates on this ? I'm having the same kind of issues with keywords like class or function (class breaks it more often). Sometimes it works well, sometimes it does not. When it fails, i'm able to confirm that the editor stops receiving changeDiagnostics messages.
I had to downgrade vscode-php-intellisense to 2.3.5 to fix the issue. I'm running Theia within a Docker container, if that may help.