mtxr / vscode-sqltools

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

Fix errors when re-using tabs with different cols #1074

Closed GeorchW closed 1 year ago

GeorchW commented 1 year ago

As described in #1073, tab reuse didn't work when the columns of the result changed. I've fixed this now so that no more errors are displayed. The issue was rooted in the fact that the new column widths were computed only after rendering, such that some columns were lacking a width.

Sizes of columns that have been manually resized are kept, even if the query changes.

Closes #1073.


Thank you for your contribution! Before submitting this PR, please make sure: