Take label offets client capability into account
This commit is contained in:
@@ -127,6 +127,7 @@ pub struct ClientCapsConfig {
|
||||
pub resolve_code_action: bool,
|
||||
pub hover_actions: bool,
|
||||
pub status_notification: bool,
|
||||
pub signature_help_label_offsets: bool,
|
||||
}
|
||||
|
||||
impl Config {
|
||||
@@ -302,6 +303,15 @@ impl Config {
|
||||
{
|
||||
self.client_caps.code_action_literals = value;
|
||||
}
|
||||
if let Some(value) = doc_caps
|
||||
.signature_help
|
||||
.as_ref()
|
||||
.and_then(|it| it.signature_information.as_ref())
|
||||
.and_then(|it| it.parameter_information.as_ref())
|
||||
.and_then(|it| it.label_offset_support)
|
||||
{
|
||||
self.client_caps.signature_help_label_offsets = value;
|
||||
}
|
||||
|
||||
self.completion.allow_snippets(false);
|
||||
if let Some(completion) = &doc_caps.completion {
|
||||
|
||||
Reference in New Issue
Block a user