Skip to content

Commit

Permalink
Merge branch 'main' into don/disableAutoBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored Oct 30, 2024
2 parents 19d5f21 + fb93cc4 commit 73d6a5d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/test/mocks/vsc/extHostedTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@ export namespace vscMockExtHostedTypes {
export class TreeItem {
label?: string;
resourceUri?: vscUri.URI;
iconPath?: string | vscUri.URI | { light: string | vscUri.URI; dark: string | vscUri.URI };
iconPath?: IconPath;
command?: vscode.Command;
contextValue?: string;
tooltip?: string;
Expand Down Expand Up @@ -2104,6 +2104,24 @@ export namespace vscMockExtHostedTypes {
}
}

/**
* Represents an icon in the UI. This is either an uri, separate uris for the light- and dark-themes,
* or a {@link ThemeIcon theme icon}.
*/
export type IconPath =
| vscode.Uri
| {
/**
* The icon path for the light theme.
*/
light: vscode.Uri;
/**
* The icon path for the dark theme.
*/
dark: vscode.Uri;
}
| ThemeIcon;

export class ThemeColor {
id: string;
constructor(id: string) {
Expand Down

0 comments on commit 73d6a5d

Please sign in to comment.