unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: "Eli Zaretskii" <eliz@gnu.org>,
	"Dimitri Belopopsky" <dimitri@belopopsky.com>,
	"João Távora" <joaotavora@gmail.com>
Cc: 61066@debbugs.gnu.org
Subject: bug#61066: [PATCH] Add inlay hint support to eglot
Date: Sat, 28 Jan 2023 03:58:53 +0200	[thread overview]
Message-ID: <2a80546d-551e-7989-b3c7-33fe1538a861@yandex.ru> (raw)
In-Reply-To: <83a625g66p.fsf@gnu.org>

On 26/01/2023 08:29, Eli Zaretskii wrote:
> AFAIU, inlay hints provide information of the same kind as ElDoc and
> in similar manner from the display and UX POV.  So I think this
> feature should work via ElDoc, not as a separate from-the-scratch
> implementation.

IIUC the "inlay hints" are about different information.

Information that is not determined by the position of point.

For example, annotating variable declarations with specific types in a 
language that infers types, here's a screenshot: 
https://user-images.githubusercontent.com/2771466/71774757-54269200-2fc8-11ea-8505-ac2f326761ca.png

Or adding parameter types (or names) inside function calls, example: 
https://user-images.githubusercontent.com/2303841/35807174-43bc0c3c-0a82-11e8-8c99-591fb650e1e0.png

So I don't think this fits Eldoc's protocol.

You were probably thinking of signature help (that was my initial 
impression as well).





      parent reply	other threads:[~2023-01-28  1:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25 22:34 bug#61066: [PATCH] Add inlay hint support to eglot Dimitri Belopopsky
2023-01-26  6:29 ` Eli Zaretskii
2023-01-26 12:30   ` João Távora
2023-01-27 18:44     ` Dimitri Belopopsky
2023-01-28  1:58   ` Dmitry Gutov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a80546d-551e-7989-b3c7-33fe1538a861@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=61066@debbugs.gnu.org \
    --cc=dimitri@belopopsky.com \
    --cc=eliz@gnu.org \
    --cc=joaotavora@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).