meta completion #500
No reviewers
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!500
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-493"
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?
#493
s, # se, # seq:, etc. all open the popup. Bare # and unrelated comments stay InComment.
"seq:allow($0)". Accepting it scaffolds the marker and parks the cursor between the parens.
across the typed prefix.
todo cases assert no false-positive popup.
Restart the LSP and try # s → you should see the seq:allow(...) snippet appear; accepting it should park the
cursor inside the parens, where the existing ID list takes over.
- detect_context now returns LintAllow whenever the comment text is a non-empty prefix of seq:allow( — so typing # s, # se, # seq:, etc. all open the popup. Bare # and unrelated comments stay InComment. - get_lint_allow_completions has two modes: - Pre-paren (no ( yet): returns a single snippet item labeled seq:allow(...) with insert_text = "seq:allow($0)". Accepting it scaffolds the marker and parks the cursor between the parens. - In-paren (existing): returns the prefix-filtered per-ID list. - Added filter_text: "seq:allow" on the snippet so editors that match on filter-text (not label) keep it visible across the typed prefix. - New test covers pre-paren detection across the prefix sequence and asserts the snippet shape; the bare # / # todo cases assert no false-positive popup. Restart the LSP and try # s → you should see the seq:allow(...) snippet appear; accepting it should park the cursor inside the parens, where the existing ID list takes over.