Skip to content

Add deep links to Quantum OS portal for V2 workspaces and jobs#3123

Merged
ScottCarda-MS merged 6 commits intomainfrom
sccarda/QosDeeplinks
Apr 15, 2026
Merged

Add deep links to Quantum OS portal for V2 workspaces and jobs#3123
ScottCarda-MS merged 6 commits intomainfrom
sccarda/QosDeeplinks

Conversation

@ScottCarda-MS
Copy link
Copy Markdown
Contributor

@ScottCarda-MS ScottCarda-MS commented Apr 15, 2026

Summary

Adds portal deep link buttons to the Quantum Workspaces panel for workspaces
and jobs hosted on V2 (Quantum OS) endpoints.

Changes

Workspace links

The existing "Open the workspace in the web portal" button on workspace tree
items now links to the Quantum OS portal (manage.quantum.microsoft.com)
for V2 workspaces, instead of the Azure Portal. V1 workspaces are unchanged.

The URL includes fragment parameters so the portal can navigate directly to
the correct workspace: tenantId, subscriptionId, role, offeringId,
and workspaceId.

Job links

A new "Open the job in the web portal" inline button ($(link-external)) is
added to job tree items, but only for jobs under V2 workspaces. This is
achieved by appending a -v2 suffix to the contextValue of job tree items
that belong to V2 workspaces, and gating the button's when clause on those
context values.

All existing job buttons (delete, cancel, download results) are updated to
also match the -v2 context values so they continue to work for V2 workspace
jobs.

Files changed

  • src/azure/workspaceActions.tsgetWorkspacePortalLink updated for V2;
    new getQuantumOsJobLink function added
  • src/azure/treeView.ts – V2 detection added to job tree item construction;
    -v2 suffix applied to contextValue for V2 workspace jobs
  • src/azure/commands.tsjobOpenPortal command registered
  • package.jsonjobOpenPortal command defined; view/item/context menu
    entries added/updated for all job buttons

Screenshots

  • Job details link:
image
  • Workspace details link:
image

@ScottCarda-MS ScottCarda-MS marked this pull request as ready for review April 15, 2026 19:44
Comment thread source/vscode/src/azure/treeView.ts Outdated
Copy link
Copy Markdown
Member

@minestarks minestarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good (and works well on my machine) - small refactoring suggestion

@ScottCarda-MS ScottCarda-MS enabled auto-merge April 15, 2026 23:30
@ScottCarda-MS ScottCarda-MS added this pull request to the merge queue Apr 15, 2026
Merged via the queue into main with commit 131065e Apr 15, 2026
12 checks passed
@ScottCarda-MS ScottCarda-MS deleted the sccarda/QosDeeplinks branch April 15, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants