Closed kewinzaq1 closed 2 days ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
react-native-ide | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 26, 2024 4:31pm |
@kmagiera Thanks for the review.
I tried to go withonDidChangeActiveTextEditor
however I ended up checking the active state
this._panel.active
before the update had happened, so I moved to the direct method on the panel; onDidChangeViewState
allows for avoiding this problem pretty straightforwardly. What do you think about this approach?
Problem
Currently, there is a chance of accidentally closing the IDE panel and it can be an unpleasant experience
Solution
Simple confirmation popup to avoid headaches. The following popup only appears if users click
cmd+w/ctr+w
https://github.com/software-mansion/react-native-ide/assets/77052270/70c45f35-9d89-4b99-ad97-9f69e0cbc96ehttps://github.com/software-mansion/react-native-ide/issues/387