-
Notifications
You must be signed in to change notification settings - Fork 81
feat: collapse unused section of launch configuration dropdown #1806
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
packages/vscode-extension/src/webview/components/AppRootSelect.tsx
Outdated
Show resolved
Hide resolved
jwajgelt
left a comment
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.
Good idea, but I have issues with the implementation.
| isExpanded: boolean, | ||
| onToggleExpand: () => void, |
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.
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.
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.
sure Ill cook it in a minute
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
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:
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