ionide-vscode-fsharp
ionide-vscode-fsharp copied to clipboard
FSI: Renaming a symbol removes any preceding module name
Describe the bug
- 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
-
Click on
value
insideMyModule
, press F2 and rename the symbol to, e.g.,getValue
. -
MyModule.value
is expected to be changed toMyModule.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:
After renaming:
Machine info
- OS: Windows 10
- .NET SDK version: 7
- Ionide version: 7.4.0