Skip to content

Filter missing auto-resolved keyword alias quick fixes by keyword existence #3098

@cmf

Description

@cmf

Follow-up from #1552, starting at #1552 (comment).

The missing auto-resolved namespace alias inspection currently suggests quick fixes for every namespace that has been observed using the requested alias elsewhere. This can produce misleading suggestions when multiple namespaces use the same alias name, but only one of them contains/uses the concrete keyword.

Example from the original report: for ::specs/version, if both app.specs1 and app.specs2 have been required as specs somewhere, Cursive may suggest both, even when only :app.specs1/version exists.

Requested behavior:

  • For ::alias/name, only suggest candidate namespaces where the resolved keyword :candidate-ns/name is known to exist in the keyword index.
  • Continue to support non-spec namespaced keyword usages, not only spec definitions.

This should reduce false positives while preserving the existing general keyword-alias quick fix behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMarks issues describing bugsreleased-eapMarks issues which have had the fixes released in an EAP build

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions