Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate DTS emulator with workspace view #4405

Open
wants to merge 57 commits into
base: main
Choose a base branch
from

Conversation

philliphoff
Copy link
Member

Adds a DTS emulator node to the Workspace view of the Azure Resources explorer, which will show running DTS emulator instances. This node offers the ability to start new emulator instances. Emulator nodes, like in the Azure Resources view, offers the abilities:

  • Copy connections strings
  • Open the corresponding task hub dashboard
  • Shutdown the emulator

The DTS settings have been updated to allow customization (i.e. registry, image, tag) of the emulator container image. Emulators started by the VS Code instance will be shutdown when the instance is closed. (Emulators started outside of the VS Code instance will not be shutdown.)

Note: the emulator features are not hidden behind the "preview features" toggle as they are (as of now) available to all.

Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
Signed-off-by: Phillip Hoff <phillip@orst.edu>
@philliphoff philliphoff requested a review from a team as a code owner March 9, 2025 00:29
@nturinski
Copy link
Member

nturinski commented Mar 11, 2025

Phil, would it be possible to add a command to install/uninstall the emulator similar to Azure Functions Core Tools?

{1FAB6A97-BC9B-42E3-B73C-E4FE55246B3A}

When you activate the extension, it immediately throws an error as well:
{CAD31C57-8815-4A54-8B32-B93B55B2782A}

I think that it may be a jarring experience for users that do not have the DTS emulator installed or are not engaging with it.

@philliphoff
Copy link
Member Author

@nturinski Thanks for taking a look.

Phil, would it be possible to add a command to install/uninstall the emulator similar to Azure Functions Core Tools?

The emulator is just a Docker container; there's nothing to install or uninstall really (save pulling/removing an image). I'll think about whether we can show/hide the workspace node based on the existence of the image (and then have a command that just pulls it). I feel that's not terribly discoverable, though.

When you activate the extension, it immediately throws an error as well:

Well that's not good; I'll try to repro and resolve that.

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