Skip to content

Navigating to deftype doesn't work from constructor #2721

@dpsutton

Description

@dpsutton

From clojurescript, navigating to source on (MapEntry. 1 2 nil) doesn't work. However, if you add a space to separate the . it does

Seems like it would be simple to check for a trailing period and then reissue the navigation command. From documentation about the reader

Symbols begin with a non-numeric character and can contain alphanumeric characters and *, +, !, -, _, ', ?, <, > and = (other characters may be allowed eventually).

It seems safe to assume that periods are not valid constituents of a symbol so we can safely check and navigate to the underlying deftype or defrecord by trimming it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA simple tasks suitable for first-time contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions