Skip to content

Unusual function expansion #673

@LastTalon

Description

@LastTalon

Describe the bug
When expanding an inline function some unusual formatting occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Begin with code such as:
function f() end

function g()
	-- stuff
end
  1. Expand function f by inserting a new line in the body.
  2. Code reformats to something like
function f()

	

end
function g()
	-- stuff
end

Expected behavior
Consuming the blank line and inserting so much blank space in the function body is unexpected. I would expect some formatting similar to:

function f()
	
end

function g()
	-- stuff
end

Environment (please complete the following information):

  • OS: Ubuntu
  • Client: VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions