Add missing workspace edit capabilities (#6950)
Closes https://github.com/zed-industries/zed/issues/6916 Specification: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspaceEdit Adds a safe minimum of the capabilities that Zed supports already, allowing rust-analyzer to send file edits on rename. Release Notes: - Fixed rust module rename from editor not renaming the FS entries ([6916](https://github.com/zed-industries/zed/issues/6916))
This commit is contained in:
parent
444f918e51
commit
7767062c09
1 changed files with 9 additions and 0 deletions
|
@ -479,6 +479,15 @@ impl LanguageServer {
|
|||
diagnostic: Some(DiagnosticWorkspaceClientCapabilities {
|
||||
refresh_support: None,
|
||||
}),
|
||||
workspace_edit: Some(WorkspaceEditClientCapabilities {
|
||||
resource_operations: Some(vec![
|
||||
ResourceOperationKind::Create,
|
||||
ResourceOperationKind::Rename,
|
||||
ResourceOperationKind::Delete,
|
||||
]),
|
||||
document_changes: Some(true),
|
||||
..WorkspaceEditClientCapabilities::default()
|
||||
}),
|
||||
..Default::default()
|
||||
}),
|
||||
text_document: Some(TextDocumentClientCapabilities {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue