File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,18 @@ Ensure FsAutoComplete is installed (when called INTERACTIVE)."
107
107
" Passes through required FsAutoComplete initialization options."
108
108
'(:automaticWorkspaceInit t ))
109
109
110
+ ; ; FIXME: this should be fixed in FsAutocomplete
111
+ (cl-defmethod xref-backend-definitions :around ((type symbol) _identifier)
112
+ " FsAutoComplete breaks spec and and returns error instead of empty list."
113
+ (if (eq major-mode 'fsharp-mode )
114
+ (condition-case err
115
+ (cl-call-next-method )
116
+ (jsonrpc-error
117
+ (when (equal (cadddr err) '(jsonrpc-error-message . " Could not find declaration" ))
118
+ nil )))
119
+ (when (cl-next-method-p )
120
+ (cl-call-next-method ))))
121
+
110
122
(add-to-list 'eglot-server-programs `(fsharp-mode . eglot-fsharp))
111
123
112
124
(provide 'eglot-fsharp )
You can’t perform that action at this time.
0 commit comments