When updating lsp-format a few days ago, I noticed that I was getting new diagnostics because of the new buffer parameter in on_attach, but the code handles the case in which this parameter is nil, so I'm updating the type accordingly.
While doing that I did the same change to other types, as well as move the method name to a higher scope to replace the raw string references everywhere.
When updating
lsp-format
a few days ago, I noticed that I was getting new diagnostics because of the new buffer parameter inon_attach
, but the code handles the case in which this parameter isnil
, so I'm updating the type accordingly.While doing that I did the same change to other types, as well as move the method name to a higher scope to replace the raw string references everywhere.