diff --git a/package.json b/package.json index 470954ca8..ca9a648ad 100644 --- a/package.json +++ b/package.json @@ -495,7 +495,7 @@ { "command": "terraform.cloud.run.plan.downloadLog", "title": "View raw plan log", - "icon": "$(book)" + "icon": "$(output)" }, { "command": "terraform.cloud.run.apply.downloadLog", diff --git a/src/providers/tfc/runProvider.ts b/src/providers/tfc/runProvider.ts index c7ae3b29f..978b64d87 100644 --- a/src/providers/tfc/runProvider.ts +++ b/src/providers/tfc/runProvider.ts @@ -73,8 +73,10 @@ export class RunTreeDataProvider implements vscode.TreeDataProvider { - item.tooltip = await runMarkdown(element); + async resolveTreeItem(item: vscode.TreeItem, element: TFCRunTreeItem): Promise { + if (element instanceof RunTreeItem) { + item.tooltip = await runMarkdown(element); + } return item; }