Skip to content

rename reference not working across file #192

Description

@loynoir

bug

rename reference not working across file

description

After util.nix rename foo to bar, example.nix still using util.foo.

I'm nix newbee, am I missing something?

    "nix.enableLanguageServer": true,
    "nix.serverPath": "/nix/store/9vy482b7lf78llxrnkz773wns7l3qs4k-nil-2025-06-13/bin/nil",

reproduce

util.nix

{ }:

{
  foo = x: x;
}

example.nix

{ }:

let
  util = import ./util.nix { };
in
util.foo 42

actual

After util.nix rename foo to bar, example.nix still using util.foo.

util.nix

{ }:

{
  bar = x: x;
}

example.nix

{ }:

let
  util = import ./util.nix { };
in
util.foo 42

expected

After util.nix rename foo to bar, example.nix is using util.bar.

util.nix

{ }:

{
  bar = x: x;
}

example.nix

{ }:

let
  util = import ./util.nix { };
in
util.bar 42

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions