Skip to content

LSP: Support triggering find references from imports #5544

@gavinmorrow

Description

@gavinmorrow

In the following example, triggering find references on any of the underlined locations should show all of the uses of the type Foo. It currently works everywhere but in the import line.

// -- foo.gleam
pub type Foo
//       ^^^

// -- app.gleam
import foo.{type Foo}
//               ^^^ ← this line shows up in all results, but triggering here fails
fn main() {
  let _: Foo = todo
  //     ^^^
}

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