+testing functionality of omnisharp

Trying to see if I can get test method elements from the omnisharp server
This commit is contained in:
oreodave
2019-08-25 21:32:08 +01:00
parent 4994b56a00
commit 706318a0cd

View File

@@ -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