From 706318a0cd9cc27344f1aad063dbd5916b3c206f Mon Sep 17 00:00:00 2001 From: oreodave Date: Sun, 25 Aug 2019 21:32:08 +0100 Subject: +testing functionality of omnisharp Trying to see if I can get test method elements from the omnisharp server --- doom.d/config.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doom.d/config.org b/doom.d/config.org index eab605b..520cf69 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -134,6 +134,13 @@ My docsets are stored in .docsets for ease of use *** C# #+BEGIN_SRC emacs-lisp (after! csharp-mode + (defun oreodave/csharp/unit-test () + (interactive) + (omnisharp--cs-inspect-buffer + (lambda (elements) + (let* ((test-methods (omnisharp--cs-filter-resursively + 'omnisharp--cs-unit-test-method-p + elements))) ;; Get set of elements through omnisharp (setq omnisharp-server-executable-path "~/bin/omnisharp/run") (add-hook 'csharp-mode-hook '(lambda() (setq c-basic-offset 4))) ; Hook for csharp setting variables -- cgit v1.2.3-13-gbd6f