File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,10 @@ to allow or deny it.")
295
295
(lsp--persist lsp-eslint-library-choices-file lsp-eslint--stored-libraries)))
296
296
(funcall callback (car option)))))))
297
297
298
+ (defun lsp-eslint--probe-failed (_workspace _message )
299
+ " Called when the server detects a misconfiguration in ESLint."
300
+ (lsp--error " ESLint is not configured correctly. Please ensure your eslintrc is set up for the languages you are using." ))
301
+
298
302
(lsp-register-client
299
303
(make-lsp-client
300
304
:new-connection
@@ -313,7 +317,8 @@ to allow or deny it.")
313
317
:multi-root t
314
318
:notification-handlers (ht (" eslint/status" #'lsp-eslint-status-handler ))
315
319
:request-handlers (ht (" workspace/configuration" #'lsp-eslint--configuration )
316
- (" eslint/openDoc" #'lsp-eslint--open-doc ))
320
+ (" eslint/openDoc" #'lsp-eslint--open-doc )
321
+ (" eslint/probeFailed" #'lsp-eslint--probe-failed ))
317
322
:async-request-handlers (ht (" eslint/confirmESLintExecution" #'lsp-eslint--confirm-local ))
318
323
:server-id 'eslint
319
324
:initialized-fn (lambda (workspace )
You can’t perform that action at this time.
0 commit comments