-
Notifications
You must be signed in to change notification settings - Fork 140
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
MicroFish91
wants to merge
24
commits into
main
Choose a base branch
from
mwf/convinced-gray
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MicroFish91
commented
Jun 12, 2025
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.'), |
There was a problem hiding this comment.
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 😆
…ions into mwf/convinced-gray
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Waiting on feedback before taking out of draft.
General flow for reference:
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