emacs-fsharp-mode icon indicating copy to clipboard operation
emacs-fsharp-mode copied to clipboard

Tab completion for enums not working as expected

Open jkaye2012 opened this issue 8 years ago • 1 comments

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

jkaye2012 avatar Nov 30 '17 03:11 jkaye2012

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.

rneatherway avatar Dec 01 '17 13:12 rneatherway