Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only popup the vscode env var dialog once (#1066)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Ensure the VSCode environment variables dialog only appears once by tracking its closed state with `hasClosedEnvVarsDialogAtom`. > > - **Behavior**: > - Introduces `hasClosedEnvVarsDialogAtom` in `EventListener.tsx` to track if the environment variables dialog has been closed. > - Updates `ShowSettingsButton` and `SettingsDialog` in `SettingsDialog.tsx` to check `hasClosedEnvVarsDialogAtom` before showing the dialog. > - **State Management**: > - Uses `atomWithStorage` for `hasClosedEnvVarsDialogAtom` to persist the closed state across sessions. > - **UI Logic**: > - In `SettingsDialog.tsx`, the dialog only opens automatically if `hasClosedEnvVarsDialogAtom` is `false`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 2ac140b. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information