Subject: bug#60198: 30.0.50; Eglot: Spelling error for vscode-json-languageserver

From: Brian Leung <[email-masked]>
Date: Mon, 19 Dec 2022 23:04:18 +0000

Benjamin Orthen <[email-masked]> writes:

> Alright thanks, I wasn't aware of the extracted versions.
>
> I still think vscode-json-languageserver should be included, as 
> this is the "original" program and not everybody might know
> or use the extracted langservers you're quoting.

OK, see attached for a patch. I added only 
vscode-json-languageserver since I could not find anything named 
vscode-{html,css}-languageserver on NPM. CCing João.

>From f38132183a3deb28458ce2747bb375912b73afd2 Mon Sep 17 00:00:00 2001
From: Brian Leung <[email-masked]>
Date: Mon, 19 Dec 2022 15:03:06 -0800
Subject: [PATCH] eglot.el: Add vscode-json-languageserver

* lisp/progmodes/eglot.el (eglot-server-programs): Add.
---
 lisp/progmodes/eglot.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index ce4ca4f3d92..0f1bfd0447d 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -190,6 +190,7 @@ eglot-server-programs
                                      '("pylsp" "pyls" ("pyright-langserver" "--stdio") "jedi-language-server")))
                                 ((js-json-mode json-mode json-ts-mode)
                                  . ,(eglot-alternatives '(("vscode-json-language-server" "--stdio")
+                                                          ("vscode-json-languageserver" "--stdio")
                                                           ("json-languageserver" "--stdio"))))
                                 ((js-mode js-ts-mode tsx-ts-mode typescript-ts-mode typescript-mode)
                                  . ("typescript-language-server" "--stdio"))
-- 
2.38.1