terraform/command/views
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
..
json views/json: Fix diag crash with invalid highlight 2021-05-04 08:35:42 -04:00
apply.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
apply_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
hook_count.go cli: Migrate apply to command views 2021-02-22 11:47:40 -05:00
hook_count_test.go cli: Migrate apply to command views 2021-02-22 11:47:40 -05:00
hook_json.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
hook_json_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
hook_ui.go cli: Fix misapplied terminal colors on run logs 2021-02-16 15:05:22 -05:00
hook_ui_test.go cli: Fix misapplied terminal colors on run logs 2021-02-16 15:05:22 -05:00
json_view.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
json_view_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
operation.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
operation_test.go command/views: Add reason to JSON planned change 2021-05-03 06:49:42 -04:00
output.go views: Fix missing source in diagnostic output 2021-02-26 16:43:03 -05:00
output_test.go views: Expand test coverage for views.Output 2021-02-16 08:48:31 -05:00
plan.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
plan_test.go cli: Migrate plan to command views 2021-02-23 10:09:25 -05:00
refresh.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
refresh_test.go cli: Add JSON logs for operations commands 2021-04-30 11:37:36 -04:00
show.go backend/local: Replace CLI with view instance 2021-02-18 12:08:08 -05:00
state_locker.go views: Fix missing source in diagnostic output 2021-02-26 16:43:03 -05:00
test.go command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
test_test.go command: Experimental "terraform test" command 2021-02-22 14:21:45 -08:00
validate.go cli: Migrate validate command to views 2021-03-18 15:56:28 -04:00
validate_test.go cli: Migrate validate command to views 2021-03-18 15:56:28 -04:00
view.go views: Remove outdated comment 2021-02-25 09:34:32 -05:00