|
1 | 1 | ;;; eglot-fsharp.el --- fsharp-mode eglot integration -*- lexical-binding: t; -*-
|
2 | 2 |
|
3 |
| -;; Copyright (C) 2019-2021 Jürgen Hötzel |
| 3 | +;; Copyright (C) 2019-2022 Jürgen Hötzel |
4 | 4 |
|
5 |
| -;; Author: Jürgen Hötzel <juergen@archlinux.org> |
| 5 | +;; Author: Jürgen Hötzel <juergen@hoetzel.info> |
6 | 6 | ;; Package-Requires: ((emacs "27.1") (eglot "1.4") (fsharp-mode "1.10") (jsonrpc "1.0.14"))
|
7 | 7 | ;; Version: 1.10
|
8 | 8 | ;; Keywords: languages
|
|
108 | 108 | (version<= emacs-version "26.2"))
|
109 | 109 | "NORMAL:-VERS-TLS1.3"
|
110 | 110 | gnutls-algorithm-priority))))
|
111 |
| - (unless (eglot-fsharp-current-version-p version) |
112 |
| - (url-copy-file url zip t) |
113 |
| - ;; FIXME: Windows (unzip preinstalled?) |
114 |
| - (let ((default-directory (file-name-directory (eglot-fsharp--path-to-server)))) |
115 |
| - (unless (zerop (call-process "unzip" nil nil nil "-o" zip)) |
116 |
| - (error "Failed to unzip %s" zip)) |
117 |
| - (unless (eq system-type 'windows-nt) |
118 |
| - (dolist (file (directory-files-recursively (file-name-directory (eglot-fsharp--path-to-server)) "." t)) |
119 |
| - (if (file-directory-p file) |
120 |
| - (chmod file #o755) |
121 |
| - (chmod file #o644))))) |
122 |
| - (delete-file zip))) |
| 111 | + (unless (eglot-fsharp-current-version-p version) |
| 112 | + (url-copy-file url zip t) |
| 113 | + ;; FIXME: Windows (unzip preinstalled?) |
| 114 | + (let ((default-directory (file-name-directory (eglot-fsharp--path-to-server)))) |
| 115 | + (unless (zerop (call-process "unzip" nil nil nil "-o" zip)) |
| 116 | + (error "Failed to unzip %s" zip)) |
| 117 | + (unless (eq system-type 'windows-nt) |
| 118 | + (dolist (file (directory-files-recursively (file-name-directory (eglot-fsharp--path-to-server)) "." t)) |
| 119 | + (if (file-directory-p file) |
| 120 | + (chmod file #o755) |
| 121 | + (chmod file #o644))))) |
| 122 | + (delete-file zip))) |
123 | 123 |
|
124 | 124 |
|
125 | 125 | (defun eglot-fsharp--process-tool-action (response)
|
@@ -169,7 +169,7 @@ Ensure FsAutoComplete is installed (when called INTERACTIVE)."
|
169 | 169 | (t `("mono" ,(eglot-fsharp--path-to-server)))))
|
170 | 170 | (arg-list (if eglot-fsharp-server-verbose
|
171 | 171 | `("--background-service-enabled" "-v")
|
172 |
| - `("--background-service-enabled") |
| 172 | + `("--background-service-enabled") |
173 | 173 | )))
|
174 | 174 | (cons 'eglot-fsautocomplete (append cmd-list arg-list)))))
|
175 | 175 |
|
|
0 commit comments