Show recently-opened files when autocompleting /file without arguments (#12434)
<img width="1588" alt="image" src="https://github.com/zed-industries/zed/assets/482957/ea63b046-64d6-419e-8135-4863748b58fa"> Release Notes: - N/A
This commit is contained in:
parent
dca5bc5986
commit
66affa969a
13 changed files with 108 additions and 62 deletions
|
@ -423,6 +423,8 @@ pub struct Completion {
|
|||
pub lsp_completion: lsp::CompletionItem,
|
||||
/// An optional callback to invoke when this completion is confirmed.
|
||||
pub confirm: Option<Arc<dyn Send + Sync + Fn(&mut WindowContext)>>,
|
||||
/// If true, the editor will show a new completion menu after this completion is confirmed.
|
||||
pub show_new_completions_on_confirm: bool,
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for Completion {
|
||||
|
@ -9252,6 +9254,7 @@ impl Project {
|
|||
filter_range: Default::default(),
|
||||
},
|
||||
confirm: None,
|
||||
show_new_completions_on_confirm: false,
|
||||
},
|
||||
false,
|
||||
cx,
|
||||
|
@ -10924,6 +10927,7 @@ async fn populate_labels_for_completions(
|
|||
documentation,
|
||||
lsp_completion,
|
||||
confirm: None,
|
||||
show_new_completions_on_confirm: false,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue