TysonAndre / vscode-php-phan

Phan - PHP Static Analysis for VS Code
Other
24 stars 4 forks source link

Add "Restart Phan Language Server" command #103

Open blm768 opened 2 years ago

blm768 commented 2 years ago

On my Windows machine, the language server seems to run into issues regularly. Rather than implement a proper solution, I went ahead and added a command to restart the LSP server in the time-honored tradition of, "It's Windows; just restart it".

I haven't fully tested this out yet, but it seems to at least kinda work.

blm768 commented 2 years ago

I don't think this is 100% perfect yet; once or twice, I've gotten an error about something having been disposed when I run the command. I haven't seen that in about a month, though, so this seems like it's probably at least good enough to be useful in its current state.