fix(lsp): noisy log message when enabling server without config #36264

This warning doesn't really make sense, since the `enable()` call is
meant to be run before the `lsp.config` calls. It will be logged many
times (once for each enabled LSP) at startup.

This is especially annoying because calling `enable()` after
configuration causes the first opened buffer not to have its filetype
set in some situations. This is a separate bug which really needs to be
fixed, and makes this superfluous logging more likely.

(cherry picked from commit 3c4acc0f1a)
This commit is contained in:
Riley Bruins
2025-10-21 07:16:19 -07:00
committed by github-actions[bot]
parent a4319015ee
commit a7eb110098

View File

@@ -429,7 +429,6 @@ lsp.config = setmetatable({ _configs = {} }, {
end
if not rtp_config and not self._configs[name] then
log.warn(('%s does not have a configuration'):format(name))
return
end