Skip to content

Commit

Permalink
add iconPath to PromptReference (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli authored Jul 18, 2024
1 parent 55c50ee commit 994b1db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base/results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 }
) { }
}

0 comments on commit 994b1db

Please sign in to comment.