Skip to content

Conversation

@wade0016
Copy link
Member

@wade0016 wade0016 commented Dec 5, 2025

With the local folder work completed, update the default UriHandler to use the vscode-fabric.exportArtifact command ("Download Item Definition..."). This avoids using the deprecated API that the uri handler had been using, and simplifies the code by deferring more of the work to the command handler.

For its part, the command handler was updated to handle artifactId/workspaceId/environment rather than working directly against the assumed artifact node (FWIW, this may be a pattern we should consider for other commands).

When the command is invoked in this manner the appropriate prompts will be shown in a modal dialog without the "Do nothing" option, the reasoning being that the user has already taken a deliberate action to open the item in VS Code rather than potentially just downloading the item for use in a different context.

The change also prompts the user to sign in (if appropriate) prior to using any Fabric API.

Errors are also shown directly to the user in this specific use case via toast rather than silently failing as had been the case in the past (another pattern to consider more broadly)

- Make sure PROD is used when Environment is not set
- Make the action prompt modal when invoked from UriHandler
@wade0016 wade0016 requested review from cpeth and kdubau December 5, 2025 22:54
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