This project is read-only.
1
Vote

Generate class omits final newline

description

In the 4/3 End User Preview, the Generate Class feature omits the trailing newline in generated files.

Steps to reproduce

  1. Add the following field to a class
    SomeUndefinedType foo;
    
  2. Invoke the View.ShowSmartTag action on the line where the field is defined (by default Alt+Shift+F10 or Ctrl+.)
  3. Select Generate class for 'SomeUndefinedType' in '[namespace]' (in new file).

Expected behavior

The generated file ends with a trailing newline.

Actual behavior

The generated file ends with a } character that is not followed by a newline.

comments