File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 6
6
</PropertyGroup >
7
7
8
8
<ItemGroup >
9
+ <Compile Include =" Error.fs" />
9
10
<Compile Include =" FileTwo.fs" />
10
11
<Compile Include =" Program.fs" />
11
12
</ItemGroup >
Original file line number Diff line number Diff line change 32
32
(it " Can be installed"
33
33
(eglot-fsharp--maybe-install)
34
34
(expect (file-exists-p (eglot-fsharp--path-to-server)) :to-be t ))
35
+ (it " shows flymake errors"
36
+ (with-current-buffer (eglot--find-file-noselect " test/Test1/Error.fs" )
37
+ (eglot--tests-connect 10 )
38
+ (search-forward " nonexisting" )
39
+ (flymake-mode t )
40
+ (flymake-start)
41
+ (goto-char (point-min ))
42
+ (eglot--sniffing (:server-notifications s-notifs)
43
+ (eglot--wait-for (s-notifs 10 )
44
+ (&key _id method &allow-other-keys)
45
+ (string= method " textDocument/publishDiagnostics" )))
46
+ (flymake-goto-next-error 1 '() t )
47
+ (expect (face-at-point ) :to-be 'flymake-error )))
35
48
(it " is enabled on F# Files"
36
49
(with-current-buffer (eglot--find-file-noselect " test/Test1/FileTwo.fs" )
37
50
(eglot--tests-connect 30 )
You can’t perform that action at this time.
0 commit comments