mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.43k stars 290 forks source link

Refresh reused result tab while waiting on query #1247

Closed BenMerSci closed 3 months ago

BenMerSci commented 7 months ago

Is your feature request related to a problem? Please describe. I use the setting "sqltools.results.reuseTabs": "connection" so that each query result is shown in the same reused tab which is refreshed. The "problem" I'm facing is that when you send a query with a result tab already open, it does not show a loading circle in the middle of the tab waiting on the new results but instead just keeps the old results there until the results from the new query are ready to be shown. The loading circle is only shown for the first query of a tab. I sometimes find myself sending queries that for different reasons take a lot of time to process and getting the result back and for whatever reason I end up being not sure if the query was send or if it is still processing.

Describe the solution you'd like When I send a new query, the old results from the previous query are no longer useful/important. I would like the current tab to refresh as a loading screen waiting for the next results than keep the visual on the older result.

Thank you!