Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unusual function expansion #673

Closed
LastTalon opened this issue Sep 13, 2021 · 1 comment
Closed

Unusual function expansion #673

LastTalon opened this issue Sep 13, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@LastTalon
Copy link

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
@sumneko sumneko added the bug Something isn't working label Sep 16, 2021
@sumneko sumneko added this to the 2.4.0 milestone Sep 16, 2021
@sumneko
Copy link
Collaborator

sumneko commented Sep 16, 2021

Reproduced with eol LF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants