emacs-fsharp-mode
emacs-fsharp-mode copied to clipboard
Tab completion for enums not working as expected
Description
Tab completion seems not to work as I would expect for enums.
Repro steps
Start with something like:
type Color = Red=0
Try to add another entry:
type Color = Red=0
| Green=1
Pressing tab leaves the text at the beginning of the buffer. Same for any other entries added afterwards.
Expected behavior
I would expect the indentation to look like:
type Color = Red=0
| Green=1
| Blue=2
Known workarounds
If I manually indent the second entry in the enum to the "correct" level, all subsequent entries will take the same level. I have not found a way to properly indent the second enum entry without manually inserting spaces.
Related information
- OSX
- 25.3
- .NET Core 1.0.1
Thanks for the report. I'm not working actively on this right now but I would be happy to review a PR if you work out a fix.