support editor help #443
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!443
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "words-for-help"
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?
Reviewed the diff. Two things worth flagging, both minor; correctness and tests look fine otherwise.
1. Duplicated sub-module list in
crates/compiler/src/builtins.rsThe 15-entry list of
(category_name, add_signatures_fn)inbuiltin_categories()(lines 73–87) is the same list thatBUILTIN_SIGNATURESLazyLock walks at lines 49–63. Adding a new builtin sub-module now requires updating both places. The newtest_categories_cover_every_signatureguards one direction (signatures present but category missing), so a forgotten registration inbuiltin_categories()will fail the test — but it would be cleaner to drive both from a single shared&[(name, fn)]constant and haveBUILTIN_SIGNATURESiterate over it. Not a bug, just drift bait.2. Silent parse failures in
crates/lsp/src/words.rs:collect_stdlib(lines 75–95)let program = parser.parse().ok()?;silently drops any stdlib module that fails to parse — the entry just vanishes from theseq/listWordsresponse with no log. If a stdlib file regresses, an editor user sees missing words and there is no breadcrumb in the LSP log. Atracing::warn!on the parse error before discarding would make this debuggable. Same forget_stdlib(module)?returningNone(shouldn't happen, since the name came fromstdlib_module_names(), but worth at least anexpect).Nothing blocking.