Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,17 @@ impl CompletionItem {
#[derive(Debug, PartialEq, Default, Deserialize, Serialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CompletionItemLabelDetails {
/// The parameters without the return type.
/// An optional string which is rendered less prominently directly after
/// {@link CompletionItemLabel.label label}, without any spacing. Should be
/// used for function signatures or type annotations.
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<String>,
pub detail: Option<String>,

/// The fully qualified name, like package name or file path.
/// An optional string which is rendered less prominently after
/// {@link CompletionItemLabel.detail}. Should be used for fully qualified
/// names or file path.
#[serde(skip_serializing_if = "Option::is_none")]
pub qualifier: Option<String>,

/// The return-type of a function or type of a property/variable.
#[serde(skip_serializing_if = "Option::is_none", rename = "type")]
pub typ: Option<String>,
pub description: Option<String>,
}

#[cfg(test)]
Expand Down
9 changes: 7 additions & 2 deletions src/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ pub enum PrepareSupportDefaultBehavior {
#[serde(rename_all = "camelCase")]
pub enum PrepareRenameResponse {
Range(Range),
RangeWithPlaceholder { range: Range, placeholder: String },
RangeWithPlaceholder {
range: Range,
placeholder: String,
},
#[serde(rename_all = "camelCase")]
DefaultBehavior { default_behavior: bool },
DefaultBehavior {
default_behavior: bool,
},
}