Skip to content

Refactor Rename doesn't work for simple type rename #13199

@royalstream

Description

@royalstream

Consider this simple example:

type MyType() = 
    member x.DoNothing(d:MyType) = ()

let a = MyType()
let b = new MyType() // alternative syntax
a.DoNothing(b)

Try renaming MyType to something else. It won't work, it will miss most of the references.
I reproduced this bug in the latest versions of VS2019 and VS2022.
Am I missing something obvious?

Metadata

Metadata

Assignees

Labels

Area-LangService-RenameSymbolFCS and VS support for renaming symbolsImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.release/17.5

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions