gleam
gleam copied to clipboard
LSP: Do not ask the client to tell us about gleam.toml changes if the client doesn't support that
fn start_watching_gleam_toml(&mut self) {
let supports_watch_files = self
.initialise_params
.capabilities
.workspace
.as_ref()
.and_then(|w| w.did_change_watched_files)
.map(|wf| wf.dynamic_registration == Some(true))
.unwrap_or(false);
if !supports_watch_files {
tracing::warn!("lsp_client_cannot_watch_gleam_toml");
return;
}
seems to already be Implemented LanguageServer::run
Something seems to be wrong with this as in Neovim we are still asking for this but it does not support it.