mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
lsp: Fill in a bunch of missing capabilities (#21924)
Also state explicitly that we do support UTF-16 encoding and nothing else. See also #19788 Release Notes: - N/A
This commit is contained in:
parent
5d0e75dd73
commit
77d066200a
1 changed files with 9 additions and 1 deletions
|
@ -608,6 +608,10 @@ impl LanguageServer {
|
|||
root_uri: Some(root_uri.clone()),
|
||||
initialization_options: None,
|
||||
capabilities: ClientCapabilities {
|
||||
general: Some(GeneralClientCapabilities {
|
||||
position_encodings: Some(vec![PositionEncodingKind::UTF16]),
|
||||
..Default::default()
|
||||
}),
|
||||
workspace: Some(WorkspaceClientCapabilities {
|
||||
configuration: Some(true),
|
||||
did_change_watched_files: Some(DidChangeWatchedFilesClientCapabilities {
|
||||
|
@ -644,6 +648,7 @@ impl LanguageServer {
|
|||
will_rename: Some(true),
|
||||
..Default::default()
|
||||
}),
|
||||
apply_edit: Some(true),
|
||||
..Default::default()
|
||||
}),
|
||||
text_document: Some(TextDocumentClientCapabilities {
|
||||
|
@ -760,9 +765,11 @@ impl LanguageServer {
|
|||
})),
|
||||
window: Some(WindowClientCapabilities {
|
||||
work_done_progress: Some(true),
|
||||
show_message: Some(ShowMessageRequestClientCapabilities {
|
||||
message_action_item: None,
|
||||
}),
|
||||
..Default::default()
|
||||
}),
|
||||
general: None,
|
||||
},
|
||||
trace: None,
|
||||
workspace_folders: Some(vec![WorkspaceFolder {
|
||||
|
@ -776,6 +783,7 @@ impl LanguageServer {
|
|||
}
|
||||
}),
|
||||
locale: None,
|
||||
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue