vscode-q client fails to gracefully reconnect after interruption (e.g. laptop sleep)
milosivanovic opened this issue · comments
Prerequisite:
- Server closed the connection but the extension is unaware yet, e.g. after resuming from sleep
- User wants to execute a query
When the user resumes from sleep, the extension still thinks the q server is connected, and allows you to execute a query. Once doing so, it immediately says "Lost connection to..." but the query remains in executing state on the extension's side. Because of this, even after reconnecting, it says "Still executing last query" and the only solution is to restart VS Code.
Could this be improved so that the busy attribute
vscode-q/src/client/modules/q-conn-manager.ts
Line 147 in 97714fd
Additionally, the extension should attempt to gracefully reconnect to the server if the connection was lost to make this an even more pleasant developer experience.
There is a command kdb+/q ext: abort current query
to stop the execution. Let me try something with close signal.
Added a button to server explorer for "abort current query"