Add test for common_prefix_at and rewrite it to be more readable and
pass the new test cases
This commit is contained in:
@@ -2364,7 +2364,7 @@ impl Project {
|
||||
(range_from_lsp(edit.range), edit.new_text.clone())
|
||||
}
|
||||
None => (
|
||||
this.common_prefix_at_position(position, &lsp_completion.label),
|
||||
this.common_prefix_at(position, &lsp_completion.label),
|
||||
lsp_completion.label.clone(),
|
||||
),
|
||||
Some(lsp::CompletionTextEdit::InsertAndReplace(_)) => {
|
||||
|
||||
Reference in New Issue
Block a user