Skip to content
Discussion options

You must be logged in to vote

You have not missed a VS Code/VSCodium setting: YAML is not currently one of the language IDs supported by harper-ls.

The official supported-languages table includes Markdown, plain text, TOML, and comments in many programming languages, but it does not list yaml:
https://writewithharper.com/docs/integrations/language-server#supported-languages

That is why Harper works when the same content is opened as plain text but does nothing when VS Code identifies compose.yaml as YAML.

As a quick confirmation, click the language mode in the lower-right corner and temporarily change it from YAML to Plain Text. Harper should then lint it. I would not make a permanent files.associations mapping from c…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by hippietrail
Comment options

You must be logged in to vote
1 reply
@hippietrail
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants