Skip to content

Renaming issues when fields have same name #1155

@sewbacca

Description

@sewbacca

Describe the bug
When fields are set equal to other fields with same name, renaming causes wrong renaming.

To Reproduce
Steps to reproduce the behavior:

local a = { }
local b = { }

a.color = { 1, 1, 1 }
b.color = a.color

Rename b.color to b.colora and see in the same line a.color change to a.colora

Expected behavior
Only b.color change to b.colora

Screenshots
Renaming issue
Note: ---@class ... doesn't matter.

Environment:

  • OS: Windows
  • No WSL
  • Client: VSCode

Additional context
I turned of all intellisense features in settings.json and the error remains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions