Skip to content

Commit 69f21e7

Browse files
committedMar 21, 2022
feat(inlayHint): add inlayHint provider
1 parent 29a50e7 commit 69f21e7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
 

‎src/inlay_hint.rs

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ use crate::{
77
};
88
use serde::{Deserialize, Serialize};
99

10+
#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
11+
#[serde(rename_all = "camelCase")]
12+
#[serde(untagged)]
13+
pub enum InlayHintServerCapabilities {
14+
Options(InlayHintOptions),
15+
RegistrationOptions(InlayHintRegistrationOptions),
16+
}
17+
1018
#[derive(Debug, Eq, PartialEq, Clone, Default, Deserialize, Serialize)]
1119
#[serde(rename_all = "camelCase")]
1220
pub struct InlayHintClientCapabilitiesResolveSupport {

‎src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -1852,6 +1852,13 @@ pub struct ServerCapabilities {
18521852
#[serde(skip_serializing_if = "Option::is_none")]
18531853
pub moniker_provider: Option<OneOf<bool, MonikerServerCapabilities>>,
18541854

1855+
/// The server provides inlay hints.
1856+
///
1857+
/// @since 3.17.0 - proposed state
1858+
#[serde(skip_serializing_if = "Option::is_none")]
1859+
#[cfg(feature = "proposed")]
1860+
pub inlay_hint_provider: Option<OneOf<bool, InlayHintServerCapabilities>>,
1861+
18551862
/// The server provides linked editing range support.
18561863
///
18571864
/// @since 3.16.0

0 commit comments

Comments
 (0)
Please sign in to comment.