Skip to content

Commit c77c2ac

Browse files
Adds Azure Launchpad support and account/org/project caching (#3995)
1 parent 6c4d4fe commit c77c2ac

File tree

7 files changed

+460
-33
lines changed

7 files changed

+460
-33
lines changed

src/commands/quickCommand.buttons.ts

+5
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ export const OpenOnGitLabQuickInputButton: QuickInputButton = {
147147
tooltip: 'Open on GitLab',
148148
};
149149

150+
export const OpenOnAzureDevOpsQuickInputButton: QuickInputButton = {
151+
iconPath: new ThemeIcon('globe'),
152+
tooltip: 'Open on Azure DevOps',
153+
};
154+
150155
export const OpenOnWebQuickInputButton: QuickInputButton = {
151156
iconPath: new ThemeIcon('globe'),
152157
tooltip: 'Open on gitkraken.dev',

src/constants.storage.ts

+26
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ export type GlobalStorage = {
8787
[key in `gk:${string}:organizations`]: Stored<StoredOrganization[]>;
8888
} & { [key in `jira:${string}:organizations`]: Stored<StoredJiraOrganization[] | undefined> } & {
8989
[key in `jira:${string}:projects`]: Stored<StoredJiraProject[] | undefined>;
90+
} & { [key in `azure:${string}:account`]: Stored<StoredAzureAccount | undefined> } & {
91+
[key in `azure:${string}:organizations`]: Stored<StoredAzureOrganization[] | undefined>;
92+
} & {
93+
[key in `azure:${string}:projects`]: Stored<StoredAzureProject[] | undefined>;
9094
};
9195

9296
export type StoredIntegrationConfigurations = Record<string, StoredConfiguredIntegrationDescriptor[] | undefined>;
@@ -203,6 +207,28 @@ export interface StoredJiraProject {
203207
resourceId: string;
204208
}
205209

210+
export interface StoredAzureAccount {
211+
id: string;
212+
name: string | undefined;
213+
username: string | undefined;
214+
email: string | undefined;
215+
avatarUrl: string | undefined;
216+
}
217+
218+
export interface StoredAzureOrganization {
219+
key: string;
220+
id: string;
221+
name: string;
222+
}
223+
224+
export interface StoredAzureProject {
225+
key: string;
226+
id: string;
227+
name: string;
228+
resourceId: string;
229+
resourceName: string;
230+
}
231+
206232
export interface StoredAvatar {
207233
uri: string;
208234
timestamp: number;

0 commit comments

Comments
 (0)