From: Troy Brown <brownts@troybrown.dev>
To: "João Távora" <joaotavora@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
74807@debbugs.gnu.org, felician.nemeth@gmail.com
Subject: bug#74807: 30.0.90; Eglot: Non-Markdown strings rendered as Markdown
Date: Tue, 7 Jan 2025 22:56:44 -0500 [thread overview]
Message-ID: <CABvCZ406NdKoEEiJoXeq4+FPX+Xfg1zZVFOw2NF6wcFW_MP5BA@mail.gmail.com> (raw)
In-Reply-To: <CALDnm51oSPCyaAD862w_F+K0U2wPi3hMj+HQiY8_w9onjYJ2Xg@mail.gmail.com>
On Mon, Jan 6, 2025 at 7:28 PM João Távora <joaotavora@gmail.com> wrote:
>
> This VSCode argument is not meaningful to me. Not only does it not
> command any special authority over disambiguation of an ambiguous spec,
> but the "regular users of those servers" I'm concerned with are longtime
> Eglot users, not VSCoders.
I think it's a good indication that if users of a language server
thought VSCode was behaving incorrectly, it would quickly be pointed
out and corrected. Since the VSCode implementation stands as-is in
this area, it is an indication that users of language servers believe
that this is the correct behavior. The fact is, VSCode gets a lot
more exposure than other LSP clients and should at least be used as a
data point. I think it's unwise to completely disregard that
information.
> Those are the users I don't want to disturb. Who's to say that Eglot users
> of your ada-language-server aren't quite happy to see "Indentation kind"
> fontified with a certain face and "spaces | tabs" in another face?
I'm not quite sure what your point is. I am both a user of Eglot and
a user of the language server and I'm not happy with this behavior,
nor do I think Eglot's behavior is correct. How is my experience any
less important than any other user? I am trying to point out where
the "Emacs experience" is subpar in an effort to correct those
undesirable behaviors and improve my Emacs user experience.
Moving on, I've done some digging and found historical information
that I believe is relevant. Initially, the specification only
included "string" for the documentation field. (i.e., "documentation?:
string;"). Then there was a Github issue logged proposing to support
markdown in the CompletionItem.documentation (see
https://github.com/microsoft/language-server-protocol/issues/111).
This is evidence that the original specification did not allow
markdown for strings in the "documentation" field. The following is
the commit where the specification was updated to add MarkupContent as
an additional option, thus remaining backwards compatible for servers
who continue to specify non-markdown documentation as strings in
addition to allowing servers to provide markdown using (the new then)
MarkupContent:
https://github.com/microsoft/language-server-protocol/commit/692c225dcb737e287e393f148d193877b0a2dd54
next prev parent reply other threads:[~2025-01-08 3:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 0:46 bug#74807: 30.0.90; Eglot: Non-Markdown strings rendered as Markdown Troy Brown
2024-12-12 8:30 ` João Távora
2024-12-12 13:32 ` Troy Brown
2024-12-28 11:02 ` Eli Zaretskii
2025-01-06 11:56 ` João Távora
2025-01-06 23:56 ` Troy Brown
2025-01-07 0:28 ` João Távora
2025-01-08 3:56 ` Troy Brown [this message]
2025-01-08 9:18 ` João Távora
2025-01-08 23:37 ` Troy Brown
2025-01-08 23:45 ` João Távora
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABvCZ406NdKoEEiJoXeq4+FPX+Xfg1zZVFOw2NF6wcFW_MP5BA@mail.gmail.com \
--to=brownts@troybrown.dev \
--cc=74807@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=felician.nemeth@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.