fix(lsp): correct the error message's cmd on spawning (#27632)

This commit is contained in:
notomo 2024-02-29 01:36:28 +09:00 committed by GitHub
parent 7311958e12
commit aa62898ae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -819,7 +819,8 @@ function M.start(cmd, dispatchers, extra_spawn_params)
else
sfx = string.format(' with error message: %s', err)
end
local msg = string.format('Spawning language server with cmd: `%s` failed%s', cmd, sfx)
local msg =
string.format('Spawning language server with cmd: `%s` failed%s', vim.inspect(cmd), sfx)
vim.notify(msg, vim.log.levels.WARN)
return nil
end