Vscode: Insiders build - touchbar no longer shows debug actions

Created on 18 Jan 2019  路  11Comments  路  Source: microsoft/vscode

Issue Type: Bug

Steps to reproduce

  1. Download vscode insiders build
  2. Write a simple script to debug (I've tested it on both js and python)
  3. Set up a breakpoint
  4. Run it with whatever configuration is the default for the language you chose
  5. Let it hit the breakpoint

    Expected Results

The touchbar shows the continue, step over, step into, restart and stop
img_0890
Image taken from the latest standard release

Actual results

That section of the touchbar shows empty
img_0891

VS Code version: Code - Insiders 1.31.0-insider (926cfe1c4ac6a438f8fa3c4f164219c7c4bf17b5, 2019-01-17T06:14:05.649Z)
OS version: Darwin x64 18.2.0


System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)|
|GPU Status|2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled|
|Load (avg)|2, 2, 2|
|Memory (System)|16.00GB (3.32GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|

Extensions: none

bug electron-3-update verified workbench-touchbar

Most helpful comment

@bpasero thanks for doing the investigative work (saved me a bunch of time). And you were totally right about the icon sizes, PR has been created to fix this issue.

All 11 comments

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@weinand you have a mac touchbar, can you reproduce with latest insiders?
If yes let's inspect on your machine in the afternoon

fyi @bpasero

@isidorn Ok, let's do this.
BTW, there are lots of touchbar simulators for those poor souls that don't have one ;-)
E.g. https://sindresorhus.com/touch-bar-simulator/ or https://red-sweater.com/touche/.

Hehe thanks

The simulator is perfect to test this. This could be an Electron 3 regression too.

@bpasero yeah I just verified that everything is good on my end regarding context keys so this is must be a Electron 3 regression. Forwarding to you.
Note that the actions do appear in the touchbar correctly for a second and than disapear.
I verified and all the icons are there as before.

@weinand do you see this as well?

I have my touch bar configured to only show F keys for VS Code (and I don't know how to change this behavior...)

@misolori can you help me out here, the issue seems to be that in newer versions of Electron, the size in touchbar buttons has changed. I noticed we use 100x100px versions for our touchbar icons (PNG) and this will now cause the buttons to appear very large, thus pushing the debug buttons out of the view:

image

All our touchbar icons end with tb.png:

image

And if you make a change to any of them and run out of sources, you should see the touchbar reflect your changes. You can use the touchbar simulator in case you do not have a touchbar: https://github.com/sindresorhus/touch-bar-simulator.

When I remove all the transparent background around the back/forward icons, I get a better result compared to what we have now, but it is still not perfect. Maybe it would also be a good idea to revisit what Apple recommends in terms of icon sizes.

image

Due to the nature of the touchbar which seems to drop button-groups completely out of the touchbar once their size exceeds the visible size, I would suggest that we try to produce icons that result in a minimal width of touch buttons in the end.

Thanks!

@bpasero thanks for doing the investigative work (saved me a bunch of time). And you were totally right about the icon sizes, PR has been created to fix this issue.

Was this page helpful?
0 / 5 - 0 ratings