vscode-yaml
vscode-yaml copied to clipboard
Having `tasks` as folder suffix in hierarchy causes Incorrect Type error
If you have a folder (anywhere in the hierarchy of the file) suffixed with tasks then you get Incorrect type. Expected "array"..
Examples:
foo
|- foo.yaml (fine)
|- tasks.yaml (fine)
|- tasks
|- foo.yaml (Incorrect type)
|- tasks-test
|- foo.yaml (fine)
|- test-tasks
|- foo.yaml (Incorrect type)
|- subdir
|- foo.yaml (Incorrect type)
|- subdir
|- tasks
|- foo.yaml (Incorrect type)
|- tasks.yaml (fine)
The files must have something in; I've been testing with AWSTemplateFormatVersion: "2010-09-09"
Error copied from VS Problems pane
{
"resource": "/c:/jake.hendy/dev/tasks/task.yaml",
"owner": "_generated_diagnostic_collection_name_#0",
"severity": 8,
"message": "Incorrect type. Expected \"array\".",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 15,
"endColumn": 1
}
Result from langauge server:
Params: {
"textDocument": {
"uri": "file:///c%3A/jake.hendy/dev/tasks/task.yaml",
"languageId": "yaml",
"version": 1,
"text": "AWSTemplateFormatVersion: \"2010-09-09\"\r"
}
}