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
@@ -432,13 +432,8 @@ let textDocumentCompletion id params =
432
432
matchHashtbl.find_opt states (DocumentUri.to_path uri) with
433
433
|None -> log @@"[textDocumentCompletion]ignoring event on non existent document"; Error( {message="Document does not exist"; code=None} ), []
434
434
|Some{ st } ->
435
-
matchDm.DocumentManager.get_completions st position with
436
-
|OkcompletionItems ->
437
-
let items =List.mapi make_CompletionItem completionItems in
438
-
return_completion ~isIncomplete:false~items, []
439
-
|Errore ->
440
-
let message = e in
441
-
Error {message; code=None}, []
435
+
let items =List.mapi make_CompletionItem (Dm.DocumentManager.get_completions st position) in
436
+
return_completion ~isIncomplete:false~items, []
442
437
443
438
letdocumentSymbolidparams=
444
439
letLsp.Types.DocumentSymbolParams.{ textDocument = {uri}; partialResultToken; workDoneToken } = params in(*TODO: At some point we might get ssupport for partialResult and workDone*)
0 commit comments