microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.47k stars 28.1k forks source link

API: Add `Right` and `Down` to `ViewColumn` enumeration #211772

Open gjsjohnmurray opened 2 months ago

gjsjohnmurray commented 2 months ago

Extensions that need to open an editor alongside an existing one can currently only specify ViewColumn.Beside. Whether this produces a new editor group to the right of the active one or below it depends on the workbench.editor.openSideBySideDirection setting.

84113 by @rbalet in 2019 requested addition of a ViewColumn.Below value to the enumeration, but it only attracted 12 upvotes so didn't progress beyond Backlog Candidates.

For a similar use case #166309 by extension developer @jmiles17 in 2022 requested workbench.editor.openSideBySideDirection to be made language scoped.

I propose adding two new values to the ViewColumn enumeration:

The names match the values of the workbench.editor.openSideBySideDirection setting.

If the team is open to this I am willing to submit a PR implementing it as proposed API.

Related:

justschen commented 1 month ago

I believe this is @bpasero

VSCodeTriageBot commented 1 month ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

VSCodeTriageBot commented 1 week ago

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!