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

Lua Formater swap comment line position #61

Open
fgc0109 opened this issue Jan 7, 2019 · 0 comments
Open

Lua Formater swap comment line position #61

fgc0109 opened this issue Jan 7, 2019 · 0 comments

Comments

@fgc0109
Copy link

fgc0109 commented Jan 7, 2019

qq 20190107230258

Lua Formater swap comment line position in code like this picture shows
after format the comment line " -- i am bottom" swap with line " logError(" i am top ") "

qq 20190107231123

i think sometime this swap may cause error if i remove comment symbol

another problem:
in another file in the same foler , after format it use tab instead space ...
qq 20190107233544
i set "lua.format.useTabs": false

Chinese:
格式化的时候在这种if else块里面会把注释的行和没注释的行调换位置啊!这样如果我没注意这个变化,格式化之后把注释取消了,并且两行的顺序会影响程序执行的话会导致错误的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant