emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 8b15bf726f 19/33: Test javascript-basic with type


From: Stefan Kangas
Subject: [elpa] externals/eglot 8b15bf726f 19/33: Test javascript-basic with typescript-language-server
Date: Sat, 8 Jan 2022 12:30:50 -0500 (EST)

branch: externals/eglot
commit 8b15bf726faa2d753933a212c3426a63cabab21c
Author: Simon Law <sfllaw@sfllaw.ca>
Commit: João Távora <joaotavora@gmail.com>

    Test javascript-basic with typescript-language-server
    
    Since #566 switched to using typescript-language-server as the default
    JavaScript LSP, the javascript-basic test should also use it.
    
    * eglot-tests.el (javascript-basic): Switch the LSP server from
    javascript-typescript-stdio to typescript-language-server.
    
    Copyright-paperwork-exempt: yes
---
 eglot-tests.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eglot-tests.el b/eglot-tests.el
index 5379c1e6f5..217b6eebd7 100644
--- a/eglot-tests.el
+++ b/eglot-tests.el
@@ -673,14 +673,14 @@ pyls prefers autopep over yafp, despite its README 
stating the contrary."
        (string= (buffer-string) "def a():\n    pass\n\n\ndef b():\n    
pass\n")))))
 
 (ert-deftest javascript-basic ()
-  "Test basic autocompletion in a python LSP"
-  (skip-unless (executable-find "~/.yarn/bin/javascript-typescript-stdio"))
+  "Test basic autocompletion in a JavaScript LSP"
+  (skip-unless (executable-find "typescript-language-server"))
   (eglot--with-fixture
       '(("project" . (("hello.js" . "console.log('Hello world!');"))))
     (with-current-buffer
         (eglot--find-file-noselect "project/hello.js")
       (let ((eglot-server-programs
-             '((js-mode . ("~/.yarn/bin/javascript-typescript-stdio")))))
+             '((js-mode . ("typescript-language-server" "--stdio")))))
         (goto-char (point-max))
         (eglot--sniffing (:server-notifications
                           s-notifs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]