Skip to content

Conversation

AlexanderSeto
Copy link

Currently, if lsp-clients-php-server-command is not set, the test-command for the PHP Language Server (php-ls) will return as true. This results in php-ls appearing in the list of available servers even if not installed. This commit fixes the check to return false when not set.

Closes #4507

@github-actions github-actions bot added documentation client One or more of lsp-mode language clients labels Jul 27, 2024
@jcs090218
Copy link
Member

I'm a little confused. Since the function holds lambda, does that mean the result won't be accurate? 🤔

@AlexanderSeto
Copy link
Author

I apologize, I'm not entirely sure I follow what you mean.

Currently, if lsp-clients-php-server-command is not initially set, the condition evaluates to nil, and so the lambda returns t. This means lsp will present php-ls in the list of available servers despite it not existing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client One or more of lsp-mode language clients documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test command for PHP Language Server returns true when lsp-clients-php-server-command is nil.
2 participants