vscode-postgres
vscode-postgres copied to clipboard
Option to split the editor vertically when showing the result tab
Right now it splits horizontally, it would be nice to have the option to split vertically by default.
I just added this functionality for myself but it does not work that well in advanced scenarios (when you already have two or three editors opened) because of the way the current API works, once the they implement the gridPosition property I think I could make this work for all scenarios, so no pull request for now. In any case if anyone wants this just change the setting 'workbench.editor.openSideBySideDirection' to 'down', it does change the behaviour globally though.
Would opening the results in a Panel (I.E. where the problems/terminal/output areas are) accomplish your desired goal more easily? I came here looking to see if anyone else had requested or started work on an option to open the results there, as it's by far my preferred output location.
My preferred option too - but WebViewPanels haven't been able to be put down there, and would have to rely on ugly console based tables.
Uff. Exactly what I do every single time with my result window. Is there no other way to has this window settings as default?
Does anybody have a workaround for this? Is it a concern of the extension or vscode? Maybe I have different use cases, but without being able to drop the result vertically, why wouldn't I continue using pgadmin?
edit - I played around with it a bit and the potential seems to be there. If I have a vertical panel below and run a new query, the query will open with the old behavior in a new tab in the same panel; however, if I close that result window and run the same query again, it loads below in the panel below. If I run the query again, it loads a new tab in the top panel. So it's alternating panels.
a new major update is in the works where I will be evaluating a number of the requests for inclusion. need to get the fundamentals down first.
I wouldn't expect the new version for a while - but it is actively being worked on.
That sounds good, thanks. I'll keep an eye out.
For my purposes, this is 90% mitigated with the nightly vscode 1.64 build via microsoft/vscode#138914.
At least now when you move the original output window/panel down below it persists through iterative F5's
It would still be nice to have a setting to default to the vertical panel on the initial F5 so that outputs go down below rather than to the side.
Big fan of having an option for this! Vertical split is a much better use of real estate for tables of data in most cases.