LSP: completion list dismissed when typing '.' after prefix #373
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#373
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
When typing a prefix like
iin the editor, the LSP correctly shows a completion list of matching words (e.g.,int.add,int.sub, etc.). However, when the user then types.to narrow the filter (e.g.,i.orint.), the completion list disappears instead of filtering further.The
.character is a valid part of word names in Seq (e.g.,int.add,list.map,map.get), so the completion list should remain open and continue filtering as the user types through the dot.Expected behavior
Typing
int.should keep the completion list open and filter to words starting withint.(e.g.,int.add,int.sub,int.mul, etc.).Actual behavior
The completion list closes when
.is typed.Likely cause
The
completion_providerincrates/lsp/src/main.rsdefinestrigger_charactersas[" ", "\n", ":"]but does not include".". When the editor receives a.character that isn't a trigger character, it may dismiss the active completion session rather than treating it as a filter continuation. Adding"."totrigger_charactersmay resolve this, though the completion handler would also need to correctly handle re-triggering mid-word at a.boundary.Environment
Reported using Neovim with the seq-lsp (
patch-seq.nvimplugin).