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
-`TextDocumentPositionParams`: This is an existing interface that includes:
25
-
- `TextDocumentIdentifier`: Specifies the document uri for which the request is sent.
26
-
- `Position`: Specifies the cursor position.
27
-
More details can be found in the [TextDocumentPositionParams - LSP Specification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentPositionParams).
25
+
-`text_document`: Specifies the document uri for which the request is sent. More details can be found at [TextDocumentIdentifier - LSP Specification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentIdentifier)
26
+
-`Position`: Specifies the cursor position. More details can be found at [Position - LSP Specification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position).
28
27
-`query`: The search pattern.
29
28
-`limit`: The number of results to return
30
29
-`with_doc`: If to return documentation information or not
31
30
32
31
## Response
33
32
34
-
```js
35
-
result: TypeSearch |null
36
-
exportinterfaceTypeSearch {
37
-
typet = Query_protocol.type_search_resultlist
33
+
```json
34
+
{
35
+
"name": string,
36
+
"typ": string,
37
+
"loc": Range,
38
+
"doc": string,
39
+
"cost": int,
40
+
"constructible" : string
38
41
}
39
-
```
40
-
-`t`: A list of types that match the query.
41
-
```
42
-
type Query_protocol.type_search_result =
43
-
{
44
-
"name": string; // The fully qualified name of this result.,
45
-
"typ": string; // The signature of this result,
46
-
"loc": { // The location of the definition of this result in the source code.
47
-
"end": { "character": int, "line": int },
48
-
"start": { "character": int, "line": int }
49
-
},
50
-
"doc": string // Optional documentation associated with this result.,
51
-
"cost": int; // A numeric value representing the "cost" or distance between this result and the query.
52
-
constructible : string; // A constructible form or template that can be used to invoke this result
53
-
}
54
-
```
42
+
```
43
+
- name: The fully qualified name of this result.,
44
+
- typ: The signature of this result,
45
+
- loc: The location of the definition of this result in the source code.,
46
+
- doc: Optional documentation associated with this result.,
47
+
- cost: A numeric value representing the "cost" or distance between this result and the query.
48
+
- constructible: A constructible form or template that can be used to invoke this result
55
49
- A response with null result is returned if no entries are found.
0 commit comments