juliosueiras / terraform-lsp

Language Server Protocol for Terraform
MIT License
579 stars 37 forks source link

Fix nil range in hcl diagnostic #80

Open awilkins opened 4 years ago

awilkins commented 4 years ago

HCL diagnostic objects may have nil source ranges

I've presumed this is when they apply to a whole file and set a source range of 0, 0, hopefully this suffices unless LSP has a "whole file" indicator it can use.