Skip to content

Enhance dotnet.generateAssets command to accept skipPrompt parameter for asset generation #8510

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

Merged
merged 6 commits into from
Aug 13, 2025

Conversation

claudiaregio
Copy link
Contributor

@claudiaregio claudiaregio commented Aug 7, 2025

Bug: #8414

@claudiaregio claudiaregio requested a review from a team as a code owner August 7, 2025 22:14
@claudiaregio claudiaregio requested a review from WardenGnaw August 7, 2025 22:14
claudiaregio and others added 3 commits August 11, 2025 15:13
Co-authored-by: Andrew Wang <waan@microsoft.com>
Co-authored-by: Andrew Wang <waan@microsoft.com>
@claudiaregio
Copy link
Contributor Author

@WardenGnaw put everything you suggested! Let me know if it's ok now

Copy link
Contributor

@AbhitejJohn AbhitejJohn left a comment

Choose a reason for hiding this comment

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

LGTM provided @WardenGnaw is good with these updates. So please wait for his approval.

Also tagging @dibarbet and @JoeRobich to see if they have any concerns.

Co-authored-by: Andrew Wang <waan@microsoft.com>
@@ -53,8 +53,8 @@ export function registerDebugger(
);

context.subscriptions.push(
vscode.commands.registerCommand('dotnet.generateAssets', async (selectedIndex) => {
if (!(await promptForDevKitDebugConfigurations())) {
vscode.commands.registerCommand('dotnet.generateAssets', async (selectedIndex: number, options: { skipPrompt?: boolean } = {}) => {
Copy link
Member

Choose a reason for hiding this comment

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

I assume the expectation is that the container tools extension is calling this programatically and can pass in the value they want here?

Additionally, generate assets can be called from the command palette directly, but generally command palette options don't pass in arguments. Can you verify the generate assets command still works there?

Copy link
Member

Choose a reason for hiding this comment

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

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep. The arguments shouldnt matter via command since its only used for calling it via the command API.

We already do this today with selectedIndex, now we are just creating another parameter for options

Copy link
Member

Choose a reason for hiding this comment

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

Yep. The arguments shouldnt matter via command since its only used for calling it via the command API.

However the command is exposed today as a user-invokable command. Should we remove that?

Copy link
Contributor

Choose a reason for hiding this comment

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

Its intended to be invokable, and if users have DevKit installed, they should see the prompt.

@WardenGnaw
Copy link
Contributor

@claudiaregio You will need to run the linter with --fix

@dibarbet dibarbet merged commit 5d1f7ab into main Aug 13, 2025
30 of 32 checks passed
@dibarbet dibarbet deleted the clregio/allow-modal-suppresion branch August 13, 2025 00:26
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.

4 participants