Conversation
Pull Request Test Coverage Report for Build 4607Details
💛 - Coveralls |
|
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. |
voodoos
left a comment
There was a problem hiding this comment.
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 |
|
Client support in VScode is on the way: ocamllabs/vscode-ocaml-platform#1626 |
CHANGES: ## Features - Add custom [`ocamllsp/typeSearch`](/ocaml-lsp-server/docs/ocamllsp/typeSearch-spec.md) request (ocaml/ocaml-lsp#1369) - Make MerlinJump code action configurable (ocaml/ocaml-lsp#1376) - Add custom [`ocamllsp/jump`](/ocaml-lsp-server/docs/ocamllsp/merlinJump-spec.md) request (ocaml/ocaml-lsp#1374) ## Fixes - Fix fd leak in running external processes for preprocessing (ocaml/ocaml-lsp#1349) - Fix prefix parsing for completion of object methods (ocaml/ocaml-lsp#1363, fixes ocaml/ocaml-lsp#1358) - Remove some duplicates in the `selectionRange` answers (ocaml/ocaml-lsp#1368)
CHANGES: ## Features - Add custom [`ocamllsp/typeSearch`](/ocaml-lsp-server/docs/ocamllsp/typeSearch-spec.md) request (ocaml/ocaml-lsp#1369) - Make MerlinJump code action configurable (ocaml/ocaml-lsp#1376) - Add custom [`ocamllsp/jump`](/ocaml-lsp-server/docs/ocamllsp/merlinJump-spec.md) request (ocaml/ocaml-lsp#1374) ## Fixes - Fix fd leak in running external processes for preprocessing (ocaml/ocaml-lsp#1349) - Fix prefix parsing for completion of object methods (ocaml/ocaml-lsp#1363, fixes ocaml/ocaml-lsp#1358) - Remove some duplicates in the `selectionRange` answers (ocaml/ocaml-lsp#1368)
CHANGES: ## Features - Add custom [`ocamllsp/typeSearch`](/ocaml-lsp-server/docs/ocamllsp/typeSearch-spec.md) request (ocaml/ocaml-lsp#1369) - Make MerlinJump code action configurable (ocaml/ocaml-lsp#1376) - Add custom [`ocamllsp/jump`](/ocaml-lsp-server/docs/ocamllsp/merlinJump-spec.md) request (ocaml/ocaml-lsp#1374) ## Fixes - Fix fd leak in running external processes for preprocessing (ocaml/ocaml-lsp#1349) - Fix prefix parsing for completion of object methods (ocaml/ocaml-lsp#1363, fixes ocaml/ocaml-lsp#1358) - Remove some duplicates in the `selectionRange` answers (ocaml/ocaml-lsp#1368)
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
handleTypeSearchbooleanRequest
ocamllsp/typeSearchTextDocumentPositionParams: 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.