lsp: Use InitializeResult from lsp-types

Make the previous patch typesafe by enabling the "proposed" feature in
the `lsp-types` crate, so that the `InitializeResult` has the
`offsetEncoding` field.

Fix the fallout of this change.
This commit is contained in:
Tobias Hunger 2022-09-01 14:25:08 +02:00 committed by Tobias Hunger
parent 051cf83482
commit ad33c257cf
3 changed files with 16 additions and 12 deletions

View file

@ -114,6 +114,7 @@ pub fn server_capabilities() -> ServerCapabilities {
trigger_characters: Some(vec![".".to_owned()]),
work_done_progress_options: WorkDoneProgressOptions::default(),
all_commit_characters: None,
completion_item: None,
}),
definition_provider: Some(OneOf::Left(true)),
text_document_sync: Some(TextDocumentSyncCapability::Kind(