mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
support folder rename for initial request.
This commit is contained in:
parent
5c2b0e0835
commit
c08391ce32
1 changed files with 16 additions and 8 deletions
|
@ -77,14 +77,22 @@ pub fn server_capabilities(client_caps: &ClientCapabilities) -> ServerCapabiliti
|
|||
will_create: None,
|
||||
did_rename: None,
|
||||
will_rename: Some(FileOperationRegistrationOptions {
|
||||
filters: vec![FileOperationFilter {
|
||||
scheme: Some(String::from("file")),
|
||||
pattern: FileOperationPattern {
|
||||
glob: String::from("**/*.rs"),
|
||||
matches: Some(FileOperationPatternKind::File),
|
||||
options: None,
|
||||
},
|
||||
}],
|
||||
filters: vec![
|
||||
FileOperationFilter {
|
||||
scheme: Some(String::from("file")),
|
||||
pattern: FileOperationPattern {
|
||||
glob: String::from("**/*.rs"),
|
||||
matches: Some(FileOperationPatternKind::File),
|
||||
options: None,
|
||||
},
|
||||
FileOperationFilter {
|
||||
scheme: Some(String::from("untitled")),
|
||||
pattern: FileOperationPattern {
|
||||
glob: String::from("**"),
|
||||
matches: Some(FileOperationPatternKind::Folder),
|
||||
options: None,
|
||||
},
|
||||
}],
|
||||
}),
|
||||
did_delete: None,
|
||||
will_delete: None,
|
||||
|
|
Loading…
Reference in a new issue