Skip to content

Provide an option to hook up DTS emulator when locally debugging DTS projects #4538

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

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

MicroFish91
Copy link
Contributor

@MicroFish91 MicroFish91 commented Jun 11, 2025

Waiting on feedback before taking out of draft.

General flow for reference:

image

I made a small deviation - I don't specifically ask the user if they want to "start" the emulator, I just ask them if they want to use an emulator, and I start it automatically if they choose it. This is just because I wanted to see if I could get away with keeping the connection prompts roughly the same between all durable providers. That said, we certainly have the flexibility to improve the wording/prompts to be more explicit about how we're starting the emulator for them, so open to any feedback on that!

Although not yet connected yet, in the future I think we'll want to add some of these predebug tasks into the activity log, in which case we would be able to show the user more transparently that we started the emulator for them. We should also show this in the output log.

Related: https://github.com/microsoft/azcode-internal/issues/212

Base automatically changed from mwf/progressive-orange to main June 11, 2025 22:35
public async execute(context: T): Promise<void> {
const emulatorId: string = nonNullValue(
await commands.executeCommand('azureFunctions.durableTaskScheduler.startEmulator'),
localize('failedToStartEmulator', 'Internal error: Failed to start DTS emulator.'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how important it is for me to add all these failure messages since preDebugValidate will end up swallowing these messages anyway 😆

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.

1 participant