Skip to content

bug(semantic): Reference has incorrect span, node_id, and symbol_id #4447

@DonIsaac

Description

@DonIsaac
const foo = 'foo'
let a = foo
console.log(a)

Notice that the first reference on foo has a span that is 1 character wide.
image

This span is actually for the reference to a in the console.log statement. Notice the highlight on a in the editor panel.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions