on2-dev / nasc-vscode-mac-touchbar

A customization for your the macbook pro touch bar buttons with features for VSCode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nothing displaying at touchbar while running an app.

kaangokdemir opened this issue · comments

While in debug mode or running an ap with F5, nothing relating with extension are displayed at touchbar.
deb

I'm running into a similar limitation, although it's not a bug per se (I think).

I always have a debug session running while I work, because I use hot reloading (I work on a web app). This means that the (very useful!) Nasc Touch Bar icons never show up while I'm editing code because the standard VS Code debug buttons always take precedence. I've searched for a setting to control this in VS Code and in this extension but didn't find any.

Is there something that can be done to allow the buttons of the extension to take precedence over the debug session buttons? I'd much rather have all the editing options that this extension provides over the debugging buttons in there, at all times.

Hm, that's odd.
I work using live reload as well (with react, for example, keeping the terminal command running) and the buttons are there (although I'm not always in debugging mode).
Would it be related to this other issue? #37

Well the Nasc buttons do stay there as long as there isn't an active debugging session. When I only run a dev server with live reload, etc. everything is working as expected, as VS Code isn't involved.

The thing is I always run my apps using a VS Code launch config that keeps the debugger attached to Chrome (or Electron) at all times. This allows using breakpoints and the debugger inside VS Code which is quite handy. But in that case the Nasc buttons are replaced with the VS Code debugger buttons until the debug session is stopped.

Here's what I get:

Not Debugging

not-debugging

Debugging

debugging

Which is a good default behaviour. However in my case, as I run with the debugger attached most of the time, it would be much more useful to always display the Nasc buttons instead of the VS Code debugging buttons. So I'd like a setting to always display the Nasc buttons, if that's even possible with the VS Code Touch Bar API.