Skip to content

LSP: Support finding references of modules #5543

@gavinmorrow

Description

@gavinmorrow

It would be nice to click on a module name and be able to find references of where it is used.

e.g. If in the following example, anytime the cursor was moved over mod and "go to reference" was activated, all the underlined areas would be found.

// -- mod.gleam
pub type Foo { Bar }

// -- app.gleam
import mod
//     ^^^
pub fn main() {
  let _: mod.Foo = mod.Bar
  //     ^^^       ^^^
}

// -- mod2.gleam
import mod
//     ^^^
pub fn fob() {
  mod.Bar
//^^^
}

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