Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions flycheck-fsharp.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@

(defvar flycheck-fsharp--lint-callback-info nil)

(defun flycheck-fsharp--can-make-request-p ()
(fsharp-ac-can-make-request t))

(defun flycheck-fsharp-fsautocomplete-lint-start (checker callback)
"Start a F# syntax check with CHECKER.
CALLBACK is the status callback passed by Flycheck."
Expand All @@ -48,6 +51,7 @@ CALLBACK is the status callback passed by Flycheck."
"A syntax checker for F# using FSharp.AutoComplete.
See URL `https://github.com/fsharp/FsAutoComplete'."
:start #'flycheck-fsharp-fsautocomplete-lint-start
:predicate #'flycheck-fsharp--can-make-request-p
:modes '(fsharp-mode))

(defvar flycheck-fsharp--error-callback-info nil)
Expand All @@ -63,6 +67,7 @@ CALLBACK is the status callback passed by Flycheck."
See URL `https://github.com/fsharp/FsAutoComplete'."
:start #'flycheck-fsharp-fsautocomplete-start
:modes '(fsharp-mode)
:predicate #'flycheck-fsharp--can-make-request-p
:next-checkers '((info . fsharp-fsautocomplete-lint)))

(defun flycheck-fsharp-handle-lint (data)
Expand Down
1 change: 1 addition & 0 deletions test/test-common.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
(defmacro stubbing-process-functions (&rest body)
`(noflet ((process-live-p (p) t)
(fsharp-ac--process-live-p (host) t)
(flycheck-fsharp--can-make-request-p () t)
(start-process (&rest args))
(set-process-filter (&rest args))
(set-process-query-on-exit-flag (&rest args))
Expand Down