terraform/command/views/json/testdata/diagnostic
Alisdair McDiarmid 3a9b369b43 views/json: Fix diag crash with invalid highlight
Some diagnostic sources (I'm looking at you, HCL) fail to set the end of
the subject range. This is a bug in those code paths, but we can ensure
that we generate valid JSON diagnostics by checking for it here.

By doing so before the range normalization, we ensure that we generate a
unit width highlight whenever possible, so that at least something
useful is displayed.
2021-05-04 08:35:42 -04:00
..
error-with-empty-highlight-range-at-end-of-source-code.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-multi-line-snippet.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-source-code-subject-and-expression-referring-to-a-collection-containing-a-sensitive-value.json cli: Diagnostics can include collections with sensitive elements 2021-04-19 11:58:49 -07:00
error-with-source-code-subject-and-expression-referring-to-sensitive-value.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-source-code-subject-and-known-expression.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-source-code-subject-and-unknown-expression-of-unknown-type.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-source-code-subject-and-unknown-string-expression.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-source-code-subject-but-no-context.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-source-code-subject-with-multiple-expression-values.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-source-code-subject.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00
error-with-source-code-unavailable.json Fix missing trailing newline 2021-05-04 08:31:39 -04:00
error-with-unset-highlight-end-position.json views/json: Fix diag crash with invalid highlight 2021-05-04 08:35:42 -04:00
sourceless-warning.json cli: Add comprehensive JSON diagnostic structure 2021-03-12 13:12:37 -05:00