File tree Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 14
14
os : [ubuntu-latest, macos-latest]
15
15
dotnet : [6.0.200]
16
16
emacs_version :
17
- - 27.1
18
17
- 27.2
19
18
- 28.1
19
+ - 28.2
20
20
- snapshot
21
21
steps :
22
22
- uses : purcell/setup-emacs@master
Original file line number Diff line number Diff line change @@ -183,8 +183,8 @@ This project is maintained by the
183
183
[[http://fsharp.org/][F# Software Foundation]], with the repository hosted
184
184
on [[https://github.com/fsharp/emacs-fsharp-mode][GitHub]].
185
185
186
- Pull requests are welcome. Please run the test-suite with =make
187
- test= before submitting a pull request.
186
+ Pull requests are welcome. Please run the test-suite with [Eldev](https://doublep.github.io/eldev/) =eldev -dtT test=
187
+ before submitting a pull request.
188
188
189
189
*** Maintainers
190
190
Original file line number Diff line number Diff line change 55
55
" Arguments for the fsautocomplete command when using `eglot-fsharp' ."
56
56
:type '(repeat string))
57
57
58
+ (defcustom eglot-fsharp-fsautocomplete-args '(
59
+ :automaticWorkspaceInit t
60
+ :keywordsAutocomplete t
61
+ :externalAutocomplete nil
62
+ :linter t
63
+ :unionCaseStubGeneration t
64
+ :recordStubGeneration t
65
+ :interfaceStubGeneration t
66
+ :interfaceStubGenerationObjectIdentifier " this"
67
+ :unusedOpensAnalyzer t
68
+ :unusedDeclarationsAnalyzer t
69
+ :useSdkScripts t
70
+ :simplifyNameAnalyzer nil
71
+ :resolveNamespaces t
72
+ :enableReferenceCodeLens t )
73
+ " Arguments for the fsautocomplete initialization."
74
+ :group 'eglot-fsharp
75
+ :risky t
76
+ )
77
+
58
78
(defun eglot-fsharp--path-to-server ()
59
79
" Return FsAutoComplete path."
60
80
(file-truename (concat eglot-fsharp-server-install-dir " netcore/fsautocomplete" (if (eq system-type 'windows-nt ) " .exe" " " ))))
@@ -133,7 +153,7 @@ Ensure FsAutoComplete is installed (when called INTERACTIVE)."
133
153
134
154
(cl-defmethod eglot-initialization-options ((_server eglot-fsautocomplete))
135
155
" Passes through required FsAutoComplete initialization options."
136
- '( :automaticWorkspaceInit t ))
156
+ `( :fSharp , eglot-fsharp-fsautocomplete-args ))
137
157
138
158
; ; FIXME: this should be fixed in FsAutocomplete
139
159
(cl-defmethod xref-backend-definitions :around ((_type symbol) _identifier)
Original file line number Diff line number Diff line change 61
61
(with-current-buffer (eglot-fsharp--find-file-noselect " test/Test1/Error.fs" )
62
62
(flymake-mode t )
63
63
(flymake-start)
64
+ (eglot-fsharp--sniff-diagnostics " test/Test1/Error.fs" )
64
65
(goto-char (point-min ))
65
66
(search-forward " nonexisting" )
66
67
(insert " x" )
67
68
(eglot--signal-textDocument/didChange)
68
- (eglot-fsharp--sniff-diagnostics " test/Test1/Error.fs" )
69
69
(flymake-goto-next-error 1 '() t )
70
70
(expect (face-at-point ) :to-be 'flymake-error )))
71
71
(it " provides completion"
You can’t perform that action at this time.
0 commit comments