mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:25:41 +02:00
Make only_buffer_difference: true work (#11488)
This commit is contained in:
@ -550,7 +550,7 @@ impl LanguageServer {
|
||||
|
||||
let location =
|
||||
Self::lsp_position_to_location(¶ms.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 {
|
||||
|
Reference in New Issue
Block a user