]> git.eshelyaron.com Git - emacs.git/commitdiff
Hard code an exception to "node_modules" directores
authorJoão Távora <joaotavora@gmail.com>
Wed, 26 May 2021 14:23:29 +0000 (15:23 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 26 May 2021 14:24:09 +0000 (15:24 +0100)
* eglot.el (eglot--directories-recursively): Fix.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/697
GitHub-reference: per https://github.com/joaotavora/eglot/issues/645

lisp/progmodes/eglot.el

index 706fa92522ebe6f3b765ffa8e895f1e0bd2e0217..4c47ad004bb1052b5fc7ffb327e4540a842e65f9 100644 (file)
@@ -2884,7 +2884,7 @@ If NOERROR, return predicate, else erroring function."
         (cl-loop with default-directory = dir
                  with completion-regexp-list = '("^[^.]")
                  for f in (file-name-all-completions "" dir)
-                 if (file-directory-p f)
+                 if (and (file-directory-p f) (not (string= "node_modules/" f)))
                  append (eglot--directories-recursively f))))
 
 \f