|
|
@ -189,13 +189,26 @@ impl Client {
|
|
|
|
root_uri: None, // set to project root in the future
|
|
|
|
root_uri: None, // set to project root in the future
|
|
|
|
initialization_options: None,
|
|
|
|
initialization_options: None,
|
|
|
|
capabilities: lsp::ClientCapabilities {
|
|
|
|
capabilities: lsp::ClientCapabilities {
|
|
|
|
// text_document:
|
|
|
|
text_document: Some(lsp::TextDocumentClientCapabilities {
|
|
|
|
|
|
|
|
completion: Some(lsp::CompletionClientCapabilities {
|
|
|
|
|
|
|
|
completion_item: Some(lsp::CompletionItemCapability {
|
|
|
|
|
|
|
|
snippet_support: Some(false), // TODO
|
|
|
|
|
|
|
|
..Default::default()
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
completion_item_kind: Some(lsp::CompletionItemKindCapability {
|
|
|
|
|
|
|
|
..Default::default()
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
context_support: None, // additional context information Some(true)
|
|
|
|
|
|
|
|
..Default::default()
|
|
|
|
|
|
|
|
}),
|
|
|
|
// { completion: {
|
|
|
|
// { completion: {
|
|
|
|
// dynamic_registration: bool
|
|
|
|
// dynamic_registration: bool
|
|
|
|
// completion_item: { snippet, documentation_format, ... }
|
|
|
|
// completion_item: { snippet, documentation_format, ... }
|
|
|
|
// completion_item_kind: { }
|
|
|
|
// completion_item_kind: { }
|
|
|
|
// } }
|
|
|
|
// } }
|
|
|
|
..Default::default()
|
|
|
|
..Default::default()
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
..Default::default()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
trace: None,
|
|
|
|
trace: None,
|
|
|
|
workspace_folders: None,
|
|
|
|
workspace_folders: None,
|
|
|
|