From f276eeaefde781b301f1ffa74b153d5e98aa0e03 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Thu, 1 Dec 2022 15:19:21 -0500 Subject: [PATCH] Add the output value display string --- actions-languageservice/src/context-providers/needs.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/actions-languageservice/src/context-providers/needs.ts b/actions-languageservice/src/context-providers/needs.ts index ec7f5e4..5ee2a2e 100644 --- a/actions-languageservice/src/context-providers/needs.ts +++ b/actions-languageservice/src/context-providers/needs.ts @@ -1,5 +1,5 @@ import {data} from "@github/actions-expressions"; -import {isString} from "@github/actions-workflow-parser/."; +import {isScalar, isString} from "@github/actions-workflow-parser"; import {Job} from "@github/actions-workflow-parser/model/workflow-template"; import {WorkflowContext} from "../context/workflow-context"; @@ -40,7 +40,10 @@ function jobOutputs(job?: Job): data.Dictionary { if (!isString(output.key)) { continue; } - d.add(output.key.value, new data.Null()); + + // Include the value for hover purposes + const value = isScalar(output.value) ? new data.StringData(output.value.toDisplayString()) : new data.Null(); + d.add(output.key.value, value); } return d; }