Skip to content

LSP: 'import ' completion offers a hardcoded 34-module list, underselling 41 of the 75 lib modules #692

Description

@Nitjsefnie

Found while implementing #590 (PR #691).

handle_completion in src/eigenlsp.c completes module names after import from a hardcoded static const char *modules[] of 34 entries, while lib/ currently ships 75 modules — so 41 modules never appear in import completion, and every new lib module silently widens the gap.

With PR #691 in place there's a natural fix: the generated src/lsp_stdlib_index.h table already carries every module name discovered from lib/*.eigs, so the import-completion list can be derived from it (unique module column) instead of the static array — one source of truth, no manual upkeep.

Happy to PR this as a follow-up once #691 settles, if you want it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions