Skip to content

Commit a23778c

Browse files
authored
Add Azure credits notification message. (#2201)
This adds a message when loaded saved workspaces on first extension activation alerting users the expiring Azure Quantum Credits program.
1 parent f71af8e commit a23778c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

vscode/src/azure/commands.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ export async function initAzureWorkspaces(context: vscode.ExtensionContext) {
4141
// Add any previously saved workspaces
4242
const savedWorkspaces = await context.secrets.get(workspacesSecret);
4343
if (savedWorkspaces) {
44+
if (context.globalState.get<boolean>("showAzureCreditsWarning", true)) {
45+
// Temporary reminder message that Azure Quantum Credits will be deprecated.
46+
const choice = vscode.window.showInformationMessage(
47+
`Azure Quantum Credits will no longer be available after June 1st, 2025.`,
48+
`Don't show again`,
49+
);
50+
choice.then((c) => {
51+
if (c === `Don't show again`) {
52+
context.globalState.update("showAzureCreditsWarning", false);
53+
}
54+
});
55+
}
56+
4457
log.debug("Loading workspaces: ", savedWorkspaces);
4558
const workspaces: WorkspaceConnection[] = JSON.parse(savedWorkspaces);
4659
for (const workspace of workspaces) {

0 commit comments

Comments
 (0)