gleam icon indicating copy to clipboard operation
gleam copied to clipboard

LSP: Do not ask the client to tell us about gleam.toml changes if the client doesn't support that

Open lpil opened this issue 3 months ago • 2 comments

lpil avatar Apr 12 '24 12:04 lpil

    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

abdessamad-zgor avatar Apr 15 '24 13:04 abdessamad-zgor

Something seems to be wrong with this as in Neovim we are still asking for this but it does not support it.

lpil avatar Apr 16 '24 19:04 lpil