diff --git a/oni-csharp/oni-csharp.el b/oni-csharp/oni-csharp.el index 3e69208..11c1dcf 100644 --- a/oni-csharp/oni-csharp.el +++ b/oni-csharp/oni-csharp.el @@ -181,6 +181,24 @@ _cs_: Solution (setq lsp-csharp-omnisharp-roslyn-server-dir (expand-file-name "~/scoop/apps/omnisharp/current")))) +(with-eval-after-load 'compile + (add-to-list 'compilation-error-regexp-alist + `(,(rx (minimal-match (one-or-more digit)) ">" + (group (any alpha) + ":\\" + (minimal-match (one-or-more (any alpha "\\" ".")))) + "(" + (group (minimal-match (one-or-more digit))) + "," + (group (minimal-match (one-or-more digit))) + "," + (group (minimal-match (one-or-more digit))) + "," + (group (minimal-match (one-or-more digit))) + "): " + (group "error" (one-or-more any))) + 1 (2 . 4) (3 . 5) 2 6))) + (with-eval-after-load 'csharp-mode (with-eval-after-load 'yasnippet (oni-csharp-snippets-initialize)))