From 38fec2627591ed701c0b17edb7342a41ebd61048 Mon Sep 17 00:00:00 2001 From: James Pogran Date: Mon, 25 Nov 2024 11:13:48 -0500 Subject: [PATCH] (TFECO-8141) Add ephemeral lifecycle messages (#1882) * (TFECO-8141) Add ephemeral lifecycle messages This commit adds the ephemeral lifecycle messages to the log message type. This will allow the UI to display the progress of ephemeral operations. This uses messages from https://github.com/hashicorp/terraform/pull/35919, which matches the messages from the HCP API. --- .changes/unreleased/ENHANCEMENTS-20241118-105724.yaml | 6 ++++++ src/api/terraformCloud/log.ts | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 .changes/unreleased/ENHANCEMENTS-20241118-105724.yaml diff --git a/.changes/unreleased/ENHANCEMENTS-20241118-105724.yaml b/.changes/unreleased/ENHANCEMENTS-20241118-105724.yaml new file mode 100644 index 000000000..2ba07d47e --- /dev/null +++ b/.changes/unreleased/ENHANCEMENTS-20241118-105724.yaml @@ -0,0 +1,6 @@ +kind: ENHANCEMENTS +body: Reflect lifecycle phases of ephemeral resources in HCP Terraform log messages +time: 2024-11-18T10:57:24.466391-05:00 +custom: + Issue: "1882" + Repository: vscode-terraform diff --git a/src/api/terraformCloud/log.ts b/src/api/terraformCloud/log.ts index f16756d12..5487ef4ad 100644 --- a/src/api/terraformCloud/log.ts +++ b/src/api/terraformCloud/log.ts @@ -44,6 +44,10 @@ export type MessageType = | 'provision_errored' | 'refresh_start' | 'refresh_complete' + // Ephemeral progress + | 'ephemeral_op_start' + | 'ephemeral_op_complete' + | 'ephemeral_op_errored' // Test Results | 'test_abstract' | 'test_file'