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

Code Formatting Keep Duplicating Last Line When meson.build Has Fewer Lines #101

Closed
GreenYun opened this issue Jun 23, 2024 · 1 comment
Closed

Comments

@GreenYun
Copy link

Describe the bug
Code formatting duplicates last line of meson.build with VS Code 'Format On Save' on.

To Reproduce
Steps to reproduce the behavior:

  1. Make an empty directory, and add this meson.build file into.
project('test', 'c')
subdir('lib')
  1. Optionally, "mkdir" the lib directory and put this meson.build file into.
sources = [
    'source.c'
]

Expected behavior
The 'meson.build' files should not be changed because they are well formatted.

Screenshots/Screencasts
In this video, everytime the code was changed without editing is because "Command+s" ("save" on macOS) pressed.

Screen.Recording.2024-06-23.at.04.33.18.mov
Screen.Recording.2024-06-23.at.04.40.09.mov

System info

  • OS: macOS 12.7.5
  • Editor: VS Code 1.91.0-insider
  • Version: mesonlsp 4.2.2 x86-64 apple darwin (downloaded binary from GitHub release)

Additional context
muon is not installed thus the formatter should be mesonlsp integrated. Also, by disabling mesonlsp will solve the problem.

@JCWasmx86
Copy link
Owner

Should be fixed and in the next release.

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

2 participants