Tom-Bonnike / vscode-formatting-toggle

A VS Code extension that allows you to toggle the formatter (Prettier, Beautify, …) ON and OFF with a simple click.
https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle
MIT License
60 stars 13 forks source link

Does not work in Remote - Containers or GitHub Codespaces #56

Closed felipecrs closed 3 years ago

felipecrs commented 4 years ago

When I hit the button, nothing happens.

LImUe9rHMB

VSCode 1.49.1

Tom-Bonnike commented 4 years ago

Works for me, v1.49.1. If you open the debug console (CMD+Shift+P, View: Debug Console), is there any log/error in any of the tabs?

Can you also take a video of your formatting settings and what happens when you click on the status bar toggle? Like this one: toggling-format

I’d also recommend disabling all other extensions to check if maybe one of them is conflicting.

felipecrs commented 4 years ago

The settings are not being changed. I was not able to find any logs for this extension as well.

felipecrs commented 4 years ago

Ok, just found where the issue is: on devcontainers, both using Remote - Containers extension and GitHub Codespaces. The issue does not happen on Windows and on WSL. I also vaguely remember that it was working before on devcontainers.

Tom-Bonnike commented 4 years ago

Mhmm, seems like I have some reading to do: https://code.visualstudio.com/api/advanced-topics/remote-extensions Can’t promise I’ll fix this quick, but I’ll investigate what I need to do to support remote development. :)

felipecrs commented 4 years ago

AE8sBvKXwD

If there is anything else I can do to help you figure out the issue, just tell me.

Can’t promise I’ll fix this quick.

Sure! I totally understand.

Thank you for this great extension anyway, very handy. :)

felipecrs commented 4 years ago

By the way, the extension works fine on WSL and SSH (the two other flavors of Remote Development).

Tom-Bonnike commented 4 years ago

Good to know, thanks Felipe!

Tom-Bonnike commented 3 years ago

Caused by https://github.com/Tom-Bonnike/vscode-formatting-toggle/issues/58