You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ctrl+W right after typing closes a new tab without asking #861
The editor writes its text to the store after a 150 ms debounce. #843 (PR #856) asks before closing a tab that holds SQL. In a fresh tab, Ctrl+W within 150 ms of the first keystrokes reads the store's content as "", so the tab closes without asking and what was typed is lost.
Fix
Flush the editor's pending content into the store before requestClose (src/stores/editorStore.ts) checks the tab. Alternatively, read the live Monaco model for the active tab. Add a test that types, then presses Ctrl+W immediately.
Activity
fix(editor): flush typing before a tab close check