From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Danny Freeman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59149: Feature Request: Report progress of long requests in Eglot Date: Sat, 19 Nov 2022 13:03:24 -0500 Message-ID: <87k03qvmla.fsf@dfreeman.email> References: <87educqkar.fsf@dfreeman.email> <86cz9jmg9r.fsf@stephe-leake.org> Reply-To: Danny Freeman Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19741"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59149@debbugs.gnu.org To: Stephen Leake Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 19 19:15:25 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1owSNB-0004v1-1p for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Nov 2022 19:15:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owSMz-00016n-Jj; Sat, 19 Nov 2022 13:15:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owSMp-00015a-Ay for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 13:15:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owSMn-0001Pq-Ue for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 13:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owSMn-0004dU-OI for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 13:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Danny Freeman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Nov 2022 18:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59149 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: 59149@debbugs.gnu.org, bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166888164817747 (code B ref -1); Sat, 19 Nov 2022 18:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Nov 2022 18:14:08 +0000 Original-Received: from localhost ([127.0.0.1]:41078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owSLv-0004cA-NL for submit@debbugs.gnu.org; Sat, 19 Nov 2022 13:14:08 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:48992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owSLs-0004c2-JD for submit@debbugs.gnu.org; Sat, 19 Nov 2022 13:14:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owSLs-00011o-Ek for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 13:14:04 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owSLq-0000f2-25 for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 13:14:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dfreeman.email; s=key1; t=1668881638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kSInxZgJlRqaPOFwrND6K9dyOBFVpCIlO95zarnCwCE=; b=UtIWyaB8fp5ud4awHH0CNSbp37n9z0uLSmzI+sESU5itO+O21Ig+kOLSc+HYjlJE1+2YH0 8DRYZnV4U+XL4MGp3hOCv2l2Uzeuz6GijaqcXppjDZGJ7f89GxEz5QvptUG9tP3bWdoBZI 8aBmwVGju1eAE3FCTgyPjVw+RELhXQM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <86cz9jmg9r.fsf@stephe-leake.org> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=188.165.223.204; envelope-from=danny@dfreeman.email; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248359 Archived-At: Stephen Leake writes: > This works for my needs in ada-mode; + 1. Great to hear! > > Anyway, the way the user opts out of LSP configuration is via the user > > variable eglot-ignored-server-capabilities. So there should be some > > point where you check the associated LSP capability of "progress > > reporting" with eglot--server-capable. I'm trying to work on using the eglot-ignored-server-capabilities functionality with this, and am having some trouble. What exactly is the capability to ignore here? The method used itself is `$/progress`. I don't know how that translates to a "capability". I believe this needs an entry somewhere in the `eglot-client-capabilities` hierarchy. This: ``` (cl-defgeneric eglot-client-capabilities (server) "What the Eglot LSP client supports for SERVER." (:method (s) (list :progress t ;; or maybe :$ (list :progress t) :workspace (list ... ... ))) ``` does not translate into anything when checking `(eglot--capabilities (eglot-current-server))`. Other capabilities are listed but not the new one I've added. nor does `(eglot--server-capable :progress)` ;; returns nil `(eglot--server-capable :progressHandler)` ;; also nil next, the entry for `eglot-ignored-server-capabilities` defcustom. What should it be? something like: ``` (const :tag "Progress notifications" :progressProvider) ``` Any ideas what I'm doing wrong here? -- Danny Freeman