phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

[Feature Request] Ability to restart php language server

Open nurdism opened this issue 2 years ago • 7 comments

There has been multiple times where the language server is not updating intellisense or showing errors that no longer exist, you can reload the window to "fix" or force a restart on the language server, but it would be nice to have a command that can do this too

nurdism avatar Jan 10 '23 06:01 nurdism

thank you for reporting the issue!

we're already tracking the problem at https://github.com/DEVSENSE/phptools-docs/issues/182

Hopefully restarting LS won't be necessary)

jakubmisek avatar Jan 10 '23 12:01 jakubmisek

We have fixed a few related issue;

Is it still happening in your case @nurdism ?

jakubmisek avatar Jan 31 '23 17:01 jakubmisek

It still does not seem to update in some cases, the only way I have to test this right now is if I delete the vendor folder. The php files do not reflect the missing libs. I reload the window and then it shows there are no packages installed. Then run composer install and again I have to reload/reopen for the project for it to reindex the composer files.

nurdism avatar Feb 02 '23 22:02 nurdism

@nurdism are you deleting the folder in vscode window, or outside the window (e.g. using File Explorer)

Isn't the vendor folder excluded from being listed in vscode Explorer?

jakubmisek avatar Feb 04 '23 21:02 jakubmisek

@jakubmisek this is what I am seeing https://www.youtube.com/watch?v=eSLEwMxk_GU

nurdism avatar Feb 05 '23 04:02 nurdism

@nurdism thank you; that looks like the bug we've been having previously.

Do you have something in the output log (as shown at https://youtu.be/KrDXWVIxOss)?

As a side note, I've tried this a lot of times repeatedly, and eventually, one folder was not indexed properly - I'll take a look on that, because that would cause the same problem as you're having.

jakubmisek avatar Feb 10 '23 22:02 jakubmisek