Bug 19353 – Indent function bodies correctly when generating overrides.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-11-03T08:41:46Z
Last change time
2018-11-24T13:56:46Z
Assigned to
No Owner
Creator
Rainer Schuetze

Comments

Comment #0 by r.sagitario — 2018-11-03T08:41:46Z
from https://forum.dlang.org/thread/[email protected]: inside a class, if you type "override" then ctrl-space, it shows a list of overridable functions. Choose one and it outputs a function stub, but the generated body is the same indent level as the declaration, e.g.: override protected void myFunction() { super.myFunction(); <- should be indented one level further }
Comment #1 by r.sagitario — 2018-11-03T08:42:15Z
Happens when completion text contains line breaks
Comment #2 by r.sagitario — 2018-11-24T13:56:46Z