valentjn / vscode-ltex

LTeX: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
784 stars 26 forks source link

Add support for YAML files #631

Open koppor opened 2 years ago

koppor commented 2 years ago

Currently, the extension supports LaTeX and Markdown files.

Sometimes, one puts comments in YAML files. The extension should support spell-checking in YAML comments, too.

willfindlay commented 2 years ago

It would be nice to use this for arbitrary files in general. For example, one use case I can think of is spell/grammar checking in git commit messages.

willfindlay commented 2 years ago

Aha, ostensibly this looks quite simple to add support for arbitrary files. Although for your use case maybe a bit trickier since you only want to look at comments. https://github.com/valentjn/vscode-ltex/pull/646/files

v217 commented 1 year ago

Spellchecking for all string values in Yaml files would be great! I think admitting pull requests like https://github.com/valentjn/vscode-ltex/pull/646/files would be great, because people can disable at will for the files they don't want to be checked. And sooner or later somebody will submit a pull request which improves on the simple solution to treat a Yaml file like plain text.

tovrstra commented 3 weeks ago

It would be interesting to support different use cases. The following may are may not be desirable, and it would be nice to be able to switch them on or off somehow:

  1. Checking comments in YAML
  2. Checking string values in YAML
  3. Checking keys of objects in YAML

For my use case, mostly 2 is of interest, 1 is ok, 3 is not desirable (too many false positives).