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

Support for subproject wrap files #150

Open
realmazharhussain opened this issue Aug 4, 2023 · 10 comments
Open

Support for subproject wrap files #150

realmazharhussain opened this issue Aug 4, 2023 · 10 comments

Comments

@realmazharhussain
Copy link

It would be great if the extension also provided syntax highlighting and completion for meson wrap files.

@tristan957
Copy link
Contributor

For syntax highlighting, use "files.associations": {"*.wrap": "ini"}

@xclaesse
Copy link
Member

xclaesse commented Aug 4, 2023

Would be nice if vscode extension can add that association automatically. Is it possible?

@tristan957
Copy link
Contributor

It could be, but honestly I hate when extensions change my settings.

@realmazharhussain
Copy link
Author

realmazharhussain commented Aug 4, 2023

For syntax highlighting, use "files.associations": {"*.wrap": "ini"}

Thank you for the tip. However, I was asking for actual support for those files. e.g. If I mistype something, it shows squiggles. The default ini style does not even differentiate between keys that are meaningful in a wrap file and the ones that are not.

Even just a different color for the keys that are actually supported by meson would be a big step.

@xclaesse
Copy link
Member

xclaesse commented Aug 4, 2023

It could be, but honestly I hate when extensions change my settings.

True, maybe it's possible to be more specific like subprojects/*.wrap ?

@tristan957
Copy link
Contributor

There is a bug in VSCode that doesn't allow that if I remember correctly

I think **/subprojects/*.wrap works though.

@shanoaice
Copy link

For syntax highlighting, use "files.associations": {"*.wrap": "ini"}

Thank you for the tip. However, I was asking for actual support for those files. e.g. If I mistype something, it shows squiggles. The default ini style does not even differentiate between keys that are meaningful in a wrap file and the ones that are not.

Even just a different color for the keys that are actually supported by meson would be a big step.

Maybe you should ask for muon or Swift-MesonLSP developers for the corresponding support? After all vscode-meson is using them for completion and linting.

@tristan957
Copy link
Contributor

cc @JCWasmx86

@JCWasmx86
Copy link
Contributor

Yes, it would be possible to add support for completion/linting to Swift-MesonLSP. I added it to my TODO-List

@tristan957
Copy link
Contributor

See #183 for some help in this

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

5 participants