Skip to content

Commit 2b055d7

Browse files
authored
fix: always set isIncomplete when completing crates (#170)
1 parent 92bb44e commit 2b055d7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lua/crates/completion/common.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,12 @@ local function complete_crates(buf, prefix, line, col, crate)
314314
end
315315

316316
return {
317-
isIncomplete = false,
317+
-- Always set `isIncomplete = true`.
318+
-- A completion list that has isIncomplete set to false, might prevent a
319+
-- completion engine from requesting further completions. This is correct
320+
-- behavior, because normally the results will only get reduced by further
321+
-- characters typed.
322+
isIncomplete = true,
318323
items = results,
319324
itemDefaults = itemDefaults,
320325
}

0 commit comments

Comments
 (0)