Skip to content

Conversation

@filip131311
Copy link
Collaborator

@filip131311 filip131311 commented Dec 10, 2025

This PR collapses the "detected" or "custom" section of launch configuration depending on which one is currently selected
this should improve a user experience for users that have a lot of custom configurations and the "detected" section is cluttering their already large selection.

Moreover for the first setup we select the custom configuration if exists:

// Otherwise, return the first launch config or a default one
if (this._launchConfigurations.length > 0) {
  return this._launchConfigurations[0];
}

so for enterprise projects with already existing configurations the user should never have a need to expand the "detected" section

How Has This Been Tested:

Screen.Recording.2025-12-10.at.11.21.10.mov

How Has This Change Been Documented:

nah

@vercel
Copy link

vercel bot commented Dec 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
radon-ide Ready Ready Preview Comment Dec 10, 2025 10:46am

Copy link
Contributor

@jwajgelt jwajgelt left a comment

Choose a reason for hiding this comment

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

Good idea, but I have issues with the implementation.

Comment on lines +49 to +50
isExpanded: boolean,
onToggleExpand: () => void,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this function should be made into a full-blown component, and these should be the internal state of that component, rather than arguments that are passed through three separate functions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure Ill cook it in a minute

@filip131311 filip131311 merged commit dca0d07 into main Dec 10, 2025
9 checks passed
@filip131311 filip131311 deleted the @Filip131311/featCalapsableLaunchConfig branch December 10, 2025 12:35
jwajgelt pushed a commit that referenced this pull request Dec 12, 2025
This PR collapses the "detected" or "custom" section of launch
configuration depending on which one is currently selected
this should improve a user experience for users that have a lot of
custom configurations and the "detected" section is cluttering their
already large selection.

Moreover for the first setup we select the custom configuration if
exists:
```js
// Otherwise, return the first launch config or a default one
if (this._launchConfigurations.length > 0) {
  return this._launchConfigurations[0];
}
```

so for enterprise projects with already existing configurations the user
should never have a need to expand the "detected" section

### How Has This Been Tested: 


https://github.com/user-attachments/assets/0d3a21b0-b821-4e83-aedd-ccb58e97e2d6

### How Has This Change Been Documented:

nah
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.

3 participants