From 994b1db9dd10468f54ee1aea1ef692f84cca4c85 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Thu, 18 Jul 2024 23:06:08 +0200 Subject: [PATCH] add iconPath to PromptReference (#71) --- src/base/results.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base/results.ts b/src/base/results.ts index e61cc7f..0dce560 100644 --- a/src/base/results.ts +++ b/src/base/results.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation and GitHub. All rights reserved. *--------------------------------------------------------------------------------------------*/ -import type { Location, Uri } from "vscode"; +import type { Location, ThemeIcon, Uri } from "vscode"; /** * Arbitrary metadata which can be retrieved after the prompt is rendered. @@ -20,5 +20,6 @@ export abstract class PromptMetadata { export class PromptReference { constructor( readonly anchor: Uri | Location | { variableName: string; value?: Uri | Location }, + readonly iconPath?: Uri | ThemeIcon | { light: Uri; dark: Uri } ) { } }