ionide-vscode-fsharp icon indicating copy to clipboard operation
ionide-vscode-fsharp copied to clipboard

FSI: Renaming a symbol removes any preceding module name

Open bytesource opened this issue 2 years ago • 0 comments

Describe the bug

  1. Open a .fsx file and insert the following code:
type A = A of int

module MyModule = 

    let value (A v) = v

let a = A 1

MyModule.value a
  1. Click on value inside MyModule, press F2 and rename the symbol to, e.g., getValue.

  2. MyModule.value is expected to be changed to MyModule.getValue. While the symbol gets renamed, the module name is removed.

Steps to reproduce

See above

Link to sample reproduction

Expected behaviour

When renaming a symbol, any preceding module name should not be removed. This seems to work fine in .fs files.

Screenshots

Before renaming: Before renaming symbol

After renaming: After renaming symbol

Machine info

  • OS: Windows 10
  • .NET SDK version: 7
  • Ionide version: 7.4.0

bytesource avatar Dec 08 '22 07:12 bytesource