-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type search custom request #1369
Conversation
Pull Request Test Coverage Report for Build 4607Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Nice. Which client is going to make use of this? |
We probably will implement a VScode extension for the query |
Okay, I think we need to see that vscode client to evaluate this work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good to me, thanks @PizieDust
@xvw, @PizieDust, Melrin 5.2-502 has been released so the CI should pass without pinning and could be un-drafted. Is the custom request ready for a last round of review ? |
17705e3
to
26fdb8a
Compare
@PizieDust I think we should, similarly as for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good! Let's wait for the vscode plugin implementation to catch up before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Client support in VScode is on the way: ocamllabs/vscode-ocaml-platform#1626 |
TypeSearch Request
Description
This custom request allows clients to perform a type search at a specific position within a text document based on finding functions or types that match a specific query pattern.
Server capability
handleTypeSearch
boolean
Request
ocamllsp/typeSearch
TextDocumentPositionParams
: This is an existing interface that includes:-
TextDocumentIdentifier
: Specifies the document uri for which the request is sent.-
Position
: Specifies the cursor position.More details can be found in the TextDocumentPositionParams - LSP Specification.
query
: The search pattern.limit
: The number of results to returnwith_doc
: If to return documentation information or notResponse
t
: A list of types that match the query.