1
0
Fork 0

[oni-csharp] Add compilation regular expression for devenv errors

This commit is contained in:
Tom Willemse 2022-02-02 13:34:53 -08:00
parent f34308bf66
commit df8ad7f733

View file

@ -181,6 +181,24 @@ _cs_: Solution
(setq lsp-csharp-omnisharp-roslyn-server-dir (setq lsp-csharp-omnisharp-roslyn-server-dir
(expand-file-name "~/scoop/apps/omnisharp/current")))) (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 'csharp-mode
(with-eval-after-load 'yasnippet (with-eval-after-load 'yasnippet
(oni-csharp-snippets-initialize))) (oni-csharp-snippets-initialize)))