Skip to content

Commit

Permalink
Fix issue where dropdown buttons for launching project host pointed t…
Browse files Browse the repository at this point in the history
…o stale projects (#2930)

Co-authored-by: Aditya Rastogi <[email protected]>
  • Loading branch information
adrastogi and Aditya Rastogi authored May 15, 2024
1 parent 49b67fb commit b871d3d
Showing 1 changed file with 8 additions and 1 deletion.
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

0 comments on commit b871d3d

Please sign in to comment.