Make only_buffer_difference: true work (#11488)

This commit is contained in:
Yash Thakur
2024-01-11 12:58:14 -05:00
committed by GitHub
parent bd07f7b302
commit 0ebbc8f71c
5 changed files with 46 additions and 27 deletions

View File

@ -550,7 +550,7 @@ impl LanguageServer {
let location =
Self::lsp_position_to_location(&params.text_document_position.position, rope_of_file);
let results = completer.complete(&rope_of_file.to_string(), location);
let results = completer.complete(&rope_of_file.to_string()[..location], location);
if results.is_empty() {
None
} else {