Skip to content

Commit 8cf5a2e

Browse files
m4xxedMax Herrmann
andauthored
Make multi-root configurable for eslint (#4890)
Co-authored-by: Max Herrmann <[email protected]>
1 parent d282ee9 commit 8cf5a2e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

clients/lsp-eslint.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ stored."
245245
:type 'string
246246
:package-version '(lsp-mode . "8.0.0"))
247247

248+
(defcustom lsp-eslint-multi-root nil
249+
"If non nil, `eslint' will be started in multi-root mode."
250+
:type 'boolean
251+
:safe #'booleanp
252+
:package-version '(lsp-mode . "9.0.1"))
253+
248254
(defun lsp--find-eslint ()
249255
(or
250256
(when-let* ((workspace-folder (lsp-find-session-folder (lsp-session) default-directory)))
@@ -422,7 +428,7 @@ to allow or deny it.")
422428
:priority -1
423429
:completion-in-comments? t
424430
:add-on? t
425-
:multi-root t
431+
:multi-root lsp-eslint-multi-root
426432
:notification-handlers (ht ("eslint/status" #'lsp-eslint-status-handler))
427433
:request-handlers (ht ("workspace/configuration" #'lsp-eslint--configuration)
428434
("eslint/openDoc" #'lsp-eslint--open-doc)

0 commit comments

Comments
 (0)