Skip to content

Incomplete rename because of trailing commas #5095

@susliko

Description

@susliko

Describe the bug

Renaming type Bar in the following code

final case class Foo(
    a: <<Bar>>,
    b: Bar,
)
trait Bar

results in b: Bar left unrenamed

final case class Foo(
    a: Quux,
    b: Bar,
)
trait Quux

The same rename goes well when there is no trailing comma after b: Bar
Tested in VS Code and Nvim

Expected behavior

All occurences of type Bar replaced with Quux

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

v0.11.11

Extra context or search terms

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that is making a piece of functionality unusablefixed-upstreamTag a ticket with this when a fix upstream has been completed and we can now address the ticketrename

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions