Start work on interpreting 'label/insertText' completions
These completions don't supply a range that should be overwritten, so the client needs to infer it via substring matching. Co-authored-by: Keith Simmons <keith@zed.dev>
This commit is contained in:
parent
c280c85ce7
commit
263e3d8176
3 changed files with 20 additions and 1 deletions
|
@ -1508,6 +1508,13 @@ impl BufferSnapshot {
|
|||
.eq(needle.bytes())
|
||||
}
|
||||
|
||||
pub fn common_prefix_at_position<T>(&self, position: T, needle: &str) -> Range<T>
|
||||
where
|
||||
T: TextDimension + ToOffset,
|
||||
{
|
||||
todo!()
|
||||
}
|
||||
|
||||
pub fn text(&self) -> String {
|
||||
self.visible_text.to_string()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue