1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Proposed LSP protocol surface, available only with the crate's `proposed`
//! Cargo feature.
//!
//! `lsp-types` 0.97.x ships only the stable protocol, so the proposed
//! workspace refresh requests get their request markers and parameter types
//! here. Everything in this module — and the matching `Client` helpers — is
//! compiled out of default builds: enabling the feature only adds API, it
//! never changes the stable Router catalog or the capabilities a server
//! advertises.
use Uri;
use Request;
use ;
/// The proposed `workspace/foldingRange/refresh` request marker.
///
/// The request asks the client to recompute its folding ranges. It carries no
/// parameters (sent as `null`) and the client acknowledges with a `null`
/// result, decoded as `()`.
/// The parameters of the proposed `workspace/textDocumentContent/refresh`
/// request.
///
/// The params name exactly one target: the document whose content the client
/// should re-pull. The spec types that field as a `DocumentUri`; `lsp-types`
/// 0.97.x models document URIs with its [`Uri`] type.
/// The proposed `workspace/textDocumentContent/refresh` request marker.
///
/// The request asks the client to refresh the cached content of one document;
/// the client acknowledges with a `null` result, decoded as `()`.