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

Fix issue where dropdown buttons for launching project host pointed to stale projects #2930

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,17 @@ public async Task GenerateCodespace()

TelemetryFactory.Get<ITelemetry>().Log("QuickstartPlaygroundGenerateButtonClicked", LogLevel.Critical, new GenerateButtonClicked(userPrompt));

// Ensure file view isn't visible (in the case where the user has previously run a Generate command
// Ensure file view isn't visible (in the case where the user has previously run a Generate command)
IsFileViewVisible = false;
IsErrorViewVisible = false;

// Ensure that the launch buttons are in their default state. This is important for scenarios where
// the extension has more than one project host and the user is doing multiple generate attempts in sequence.
// It makes sure that the code in the code-behind for populating the dropdown button gets re-run to pick up
// the new project host objects.
IsLaunchButtonVisible = true;
IsLaunchDropDownVisible = false;

// Without this, when the user generates two projects in sequence, the text box
// will contain any text from last-opened file in the previous project (which is
// confusing as this project may not have anything to do with the current one). This
Expand Down
Loading