]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent possible cquery choke on :initializationoptions
authorJoão Távora <joaotavora@gmail.com>
Fri, 1 Jun 2018 13:12:54 +0000 (14:12 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 1 Jun 2018 13:13:05 +0000 (14:13 +0100)
Hopefully help debug https://github.com/joaotavora/eglot/issues/10.

* eglot.el (eglot-initialization-options): Use `list'

lisp/progmodes/eglot.el

index cc5649fa382c4b7d01bf8adc624cb9e0a0a0ff62..a991cb1f785bcc916b7a6a5e306e98366c8471e0 100644 (file)
@@ -1600,8 +1600,8 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp."
   "Passes through required cquery initialization options"
   (let* ((root (car (project-roots (eglot--project server))))
          (cache (expand-file-name ".cquery_cached_index/" root)))
-    (vector :cacheDirectory (file-name-as-directory cache)
-            :progressReportFrequencyMs -1)))
+    (list :cacheDirectory (file-name-as-directory cache)
+          :progressReportFrequencyMs -1)))
 
 (cl-defmethod eglot-handle-notification
   ((_server eglot-cquery) (_method (eql :$cquery/progress))