microsoft / azure-pipelines-language-server

A language server for Azure Pipelines YAML
38 stars 25 forks source link

Only check for expressions when keys are scalar #141

Closed winstliu closed 1 year ago

winstliu commented 1 year ago

Compile-time expressions must have scalar keys; e.g. [array]: value will never be an expression. We now check the node to make sure it's scalar before seeing if it has a value to prevent the language server from crashing.

Fixes #140