doom/doctor: fix over-eager omnisharp checks

Fixes #2206
This commit is contained in:
Henrik Lissner 2020-05-14 16:36:58 -04:00
parent 68b5f687bd
commit e7f04a3d87
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,7 +1,7 @@
;; -*- lexical-binding: t; no-byte-compile: t; -*- ;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/csharp/doctor.el ;;; lang/csharp/doctor.el
(require 'omnisharp) (when (and (require 'omnisharp nil t) (not (featurep! +lsp)))
(let ((omnisharp-bin (or omnisharp-server-executable-path (omnisharp--server-installation-path t)))) (let ((omnisharp-bin (or omnisharp-server-executable-path (omnisharp--server-installation-path t))))
(unless (file-exists-p omnisharp-bin) (unless (file-exists-p omnisharp-bin)
(warn! "Omnisharp server isn't installed, completion won't work"))) (warn! "Omnisharp server isn't installed, completion won't work"))))