Skip to content

Allow "Increase Current View Size" and "Decrease Current View Size" when in zen mode #203334

@Ozoniuss

Description

@Ozoniuss

Type: Bug

Steps to reproduce:

  • Toggle Zen Mode;
  • Make sure there are no other open views except one single editor;
  • Trigger either Increase Current View Size or Decrease Current View Size command.

Please look at the attached video which goes through these steps interactively.

Expected Behaviour:

The open editor either expands or shrinks horizontally.

Current Behaviour:

Nothing happens :(

Context:

Vscode has two nice commands for increasing/decreasing the current view size, workbench.action.increaseViewSize and workbench.action.decreaseViewSize. I like to map these to shortcuts. They work as indended, except the scenario presented above.

The command works as expected if there are at least two open editors (read below for one open editor alongside additional panels).

My main use case for wanting to do this is working on some certain files (typically HTML) where I could use the extra length of the editor. I usually keep my code within 80 or 120 characters long or use word wrapping, but that looks awkward in those scenarios.

I think that it's not straightforward to define what the behaviour should be if a single editor is open, alongside with one or more different panels (not editors) such as the file explorer (usually on the right) or the terminal (usually below). At the moment the command does increase or decrease their size accordingly, and one could argue about whether or not it should also increase or decrease the editor size. Though, I don't have a problem with doing nothing when additional panels are open. My desire is using this command while only one single editor is open.

If this is indeed deemed as a bug, I am open to contributing a fix.

Additional Information

VS Code version: Code 1.85.2 (8b37750, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info

|Item|Value|

|---|---|
|CPUs|AMD Ryzen 7 5800H with Radeon Graphics (16 x 3194)|
|GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|31.86GB (14.47GB free)|
|Process Argv|casheer --crash-reporter-id be976544-dff3-4716-a7ac-f8062db9d610|
|Screen Reader|no|
|VM|0%|

Extensions: none

Screen Capture

viewsize.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityworkbench-zenFull screen 'Zen' view issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions