Add integration test for getting and resolving completions

This commit is contained in:
Max Brunsfeld 2022-02-03 15:24:16 -08:00
parent 6e33f14218
commit 3dfff3866a
4 changed files with 237 additions and 4 deletions

View file

@ -1677,7 +1677,7 @@ impl Editor {
self.completion_state.take()
}
fn confirm_completion(
pub fn confirm_completion(
&mut self,
completion_ix: Option<usize>,
cx: &mut ViewContext<Self>,

View file

@ -1339,7 +1339,7 @@ impl MultiBufferSnapshot {
range: range.clone(),
excerpts: self.excerpts.cursor(),
excerpt_chunks: None,
language_aware: language_aware,
language_aware,
};
chunks.seek(range.start);
chunks