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

Comments are eaten when saving #270

Open
KaruroChori opened this issue Dec 16, 2024 · 3 comments
Open

Comments are eaten when saving #270

KaruroChori opened this issue Dec 16, 2024 · 3 comments

Comments

@KaruroChori
Copy link

Comments under certain conditions are eaten from the tail of a file.
If a meson.config file ends with comments, these will be progressively stripped.

For example

i18n = import('i18n')

# NOTE: Remember to add the XML file to POTFILES.in!
#i18n.merge_file(
#    input:  metainfo_file,
#    output: 'com.karurochari.vs.metainfo.xml',
#    type: 'xml',
#    po_dir: join_paths (meson.project_source_root(), 'po'),
#    install: true,
#    install_dir: join_paths (get_option ('datadir'), 'metainfo')
#)

is affected

@tristan957
Copy link
Contributor

Please open this issue in the Meson repository.

@KaruroChori
Copy link
Author

KaruroChori commented Dec 16, 2024

Sorry, but how has that anything to do with meson itself?
Editing meson files in a text editor without vscode-meson does clearly not remove lines on save.

@tristan957
Copy link
Contributor

Can you try turning the language server off?

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