From e7f04a3d87c688ad53d7c27a24e56a7f541729c4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 14 May 2020 16:36:58 -0400 Subject: [PATCH] doom/doctor: fix over-eager omnisharp checks Fixes #2206 --- modules/lang/csharp/doctor.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/lang/csharp/doctor.el b/modules/lang/csharp/doctor.el index 82c1c191d..b9a56317f 100644 --- a/modules/lang/csharp/doctor.el +++ b/modules/lang/csharp/doctor.el @@ -1,7 +1,7 @@ ;; -*- lexical-binding: t; no-byte-compile: t; -*- ;;; lang/csharp/doctor.el -(require 'omnisharp) -(let ((omnisharp-bin (or omnisharp-server-executable-path (omnisharp--server-installation-path t)))) - (unless (file-exists-p omnisharp-bin) - (warn! "Omnisharp server isn't installed, completion won't work"))) +(when (and (require 'omnisharp nil t) (not (featurep! +lsp))) + (let ((omnisharp-bin (or omnisharp-server-executable-path (omnisharp--server-installation-path t)))) + (unless (file-exists-p omnisharp-bin) + (warn! "Omnisharp server isn't installed, completion won't work"))))