From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brian Leung Newsgroups: gmane.emacs.bugs Subject: bug#59770: [PATCH] eglot: Account for tsx-ts-mode in eglot-server-programs Date: Fri, 02 Dec 2022 11:04:35 +0000 Message-ID: <87iliuf4n0.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33371"; mail-complaints-to="usenet@ciao.gmane.io" To: 59770@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 12:05:59 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 1p13ri-0008PR-Hx for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 12:05:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p13rJ-0003o8-RO; Fri, 02 Dec 2022 06:05:34 -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 1p13qo-0003n7-J8 for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 06:05:02 -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 1p13qo-00022B-7v for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 06:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p13qn-0007il-Td for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 06:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Brian Leung Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 11:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59770 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166997909329668 (code B ref -1); Fri, 02 Dec 2022 11:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 11:04:53 +0000 Original-Received: from localhost ([127.0.0.1]:46012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p13qe-0007iS-Vk for submit@debbugs.gnu.org; Fri, 02 Dec 2022 06:04:53 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p13qZ-0007iM-OD for submit@debbugs.gnu.org; Fri, 02 Dec 2022 06:04:51 -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 1p13qX-0003cB-0O for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 06:04:47 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p13qT-0001zN-OK for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 06:04:43 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5B9A1240026 for ; Fri, 2 Dec 2022 12:04:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669979079; bh=pCiRQXU0A9+OzpqBkrfN7vtmwqhkX9t2VLJ54jh+AqU=; h=From:To:Subject:Date:From; b=MOgcKj7Lz6B7vsTjkNWHWPLh+JefHpsEpVFp3UPlFZtntBcvUXLRyCT8GdhGdNiCW CJHDBTmmBCOMz/ROiHpkZAo+pgAYAKQ+i4TbZiZZMAF/RTe1HEosO6T76rmUgXoWZr D0fvoCwvjhUa/CfsaCax/HtnLja+WOgjrgXf0rcw+HMfbWG7e+7YnrY6F7QUzm97wg lCJNnxSmLfbLYMyK5u9CMk3Z5o3K8mXaQ4xHJnCyK6vryQFtv7jzlqpI9eYyHorlAP xTPgXJKWkHFXwXh0jJonW5Bgs0+TzJ+UlgilCKmDQHgsEsnwjkW4NmRFhVatYfTAs2 5rXab98I3y1JA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NNqpG3Y43z9rxQ for ; Fri, 2 Dec 2022 12:04:38 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=leungbk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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:249731 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Intended for the 29 branch, since it's related to a tree-sitter-based addition. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) Repository revision: ff64a85b2db11b57dda8be0fa0b749870d353590 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: NixOS 23.05 (Stoat) Configured using: 'configure --prefix=/nix/store/7hzjm16ck3xwslvryndm6j6sxvcp1hbn-emacs-git-20221201.0 --disable-build-details --with-modules --with-x-toolkit=lucid --with-xft --with-cairo --with-native-compilation' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-eglot-Account-for-tsx-ts-mode-in-eglot-server-progra.patch >From bec5c7b33afffd71a4a1c8364092ec04b641e9ce Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Fri, 2 Dec 2022 03:02:30 -0800 Subject: [PATCH] eglot: Account for tsx-ts-mode in eglot-server-programs * lisp/progmodes/eglot.el (eglot-server-programs): Add tsx-ts-mode. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index e5c943ebf7..c266f6e18a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -190,7 +190,7 @@ eglot-server-programs ((js-json-mode json-mode json-ts-mode) . ,(eglot-alternatives '(("vscode-json-language-server" "--stdio") ("json-languageserver" "--stdio")))) - ((js-mode js-ts-mode typescript-ts-mode typescript-mode) + ((js-mode js-ts-mode tsx-ts-mode typescript-ts-mode typescript-mode) . ("typescript-language-server" "--stdio")) ((bash-ts-mode sh-mode) . ("bash-language-server" "start")) ((php-mode phps-mode) -- 2.38.1 --=-=-=--