neoclide / coc-yaml

Yaml language server extension for coc.nvim
MIT License
248 stars 23 forks source link

incorrect lint on github actions' workflow #40

Closed GopherJ closed 2 years ago

GopherJ commented 3 years ago
image

sometimes I can get incorrect lint on some github actions workflows like:

https://github.com/parallel-finance/parallel/blob/master/.github/workflows/deploy.yml#L1-L7

GopherJ commented 3 years ago

if I remove the first seven lines then paste back and save, then the errors move down:

image
timtyrrell commented 3 years ago

Yeah, getting: [yaml-schema: https://json.schemastore.org/github-workflow.json] [E] Missing property "jobs"

I totally have a jobs property in there.

EDIT: ah, sounds related to this issue: https://github.com/neoclide/coc-yaml/issues/28#issuecomment-784849086

chemzqm commented 2 years ago

Use :CocCommand yaml.selectSchema to choose yaml schema.