mtbaqer / vscode-better-folding

VS Code extension to improve your folding experience
https://marketplace.visualstudio.com/items?itemName=MohammadBaqer.better-folding
MIT License
321 stars 9 forks source link

Folding doesn't work in remote workspace #54

Open Joristdh opened 8 months ago

Joristdh commented 8 months ago

Describe the bug When working in a remote workspace, the default folding behavior remains. This is caused by the extension running on the remote machine instead of locally (see the workaround).

To Reproduce Steps to reproduce the behavior:

  1. Open a workspace via a remote tunnel
  2. Open a filetype supported by the extension
  3. Fold a section
  4. See default (two-line) folding behavior.

Expected behavior I expect the extension to also work in a remote environment.

Additional context Possibly the same cause as #7.

Workaround You can add the following to your settings.json to force the extension to run locally: "remote.extensionKind": { "MohammadBaqer.better-folding": [ "ui" ] }

sirbeagle commented 8 months ago

I just tried adding the extensionKind change in my settings.json as suggested and can confirm that the expected folding behavior works when VSCode is using a remote connection. Thanks @Joristdh - that's been bugging me for a while!

wallacewinfrey-spectralogic commented 7 months ago

I added the recommended change, but unfortunately the closing bracket still appears despite "betterFolding.foldClosingBrackets": true in the remote host's settings.json.

Here's how it looks on localhost:

image

and here's how it looks on remotehost:

image