Skip to content

'textDocument/rename' does not include variable references in (( )) (arithmetic) #1134

Closed
@chrisgrieser

Description

@chrisgrieser

Code editor

nvim

Platform

macOS 14.1 (arm)

Version

5.1.2

What steps will reproduce the bug?

create a file with this code:

foo=123
foo=$((foo + 1))
echo "$foo"

renaming foo to bar results in this:

bar=123
bar=$((foo + 1))
echo "$bar"

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

References in a double bracket (()) should be affected by the renaming.

What do you see instead?

No reference in a double bracket (()) is affected by the renaming.

Additional information

No response

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