You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: language-server/vscoqtop/lspManager.ml
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -458,13 +458,8 @@ let textDocumentCompletion id params =
458
458
matchHashtbl.find_opt states (DocumentUri.to_path uri) with
459
459
|None -> log @@"[textDocumentCompletion]ignoring event on non existent document"; Error( {message="Document does not exist"; code=None} ), []
460
460
|Some{ st } ->
461
-
matchDm.DocumentManager.get_completions st position with
462
-
|OkcompletionItems ->
463
-
let items =List.mapi make_CompletionItem completionItems in
464
-
return_completion ~isIncomplete:false~items, []
465
-
|Errore ->
466
-
let message = e in
467
-
Error {message; code=None}, []
461
+
let items =List.mapi make_CompletionItem (Dm.DocumentManager.get_completions st position) in
462
+
return_completion ~isIncomplete:false~items, []
468
463
469
464
letdocumentSymbolidparams=
470
465
letLsp.Types.DocumentSymbolParams.{ textDocument = {uri}; partialResultToken; workDoneToken } = params in(*TODO: At some point we might get ssupport for partialResult and workDone*)
0 commit comments