Skip to content

Commit ecc9ab2

Browse files
F# script files doesn't need to exist to be parsed
Fixes #167
1 parent 198493c commit ecc9ab2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fsharp-mode-completion.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,8 @@ For indirect buffers return the truename of the base buffer."
246246

247247
(defun fsharp-ac/load-file (file)
248248
"Start the compiler binding for an individual F# script FILE."
249-
(when (and (fsharp-ac--script-file-p file) (file-exists-p file))
250-
(unless (fsharp-ac--process-live-p (fsharp-ac--hostname file))
251-
(fsharp-ac/start-process))
249+
(when (and (fsharp-ac--script-file-p file) (not (fsharp-ac--process-live-p (fsharp-ac--hostname file))))
250+
(fsharp-ac/start-process)
252251
(add-hook 'after-save-hook 'fsharp-ac--load-after-save nil 'local)))
253252

254253
(defun fsharp-ac--load-after-save ()

0 commit comments

Comments
 (0)