lifeart/vscode-ember

Code folding

Closed this issue · 11 comments

The cold-folding arrows in the gutter are no longer visible when the plugin is enabled.

I have version v3.0.18 and VSCode v1.64.2.

If version v3.0.16 is installed the code folding arrows are visible again.

Probably broken by this: 31fc776

@camskene could you provide some code snippets to test on?

  • screens of expecting folding and existing

For me - it's visible "on hover" -
image
js/ts also, works fine:

image

@Alonski is it working for you?

This is a hbs file. It is the same with js. First image is v3.0.16, second is v3.0.19. I set the arrows to only show on hover but that didn't fix it.

image

image

These are the settings if helpful:
image

@camskene how big is your project? (amount of hbs files)

I have about 3.5k hbs files.

@camskene looks like language server is busy on templates indexing, foldings should start work once all files will be indexed. Also, it looks like we need to introduce option to disable code folding. Short term solution may be disable template indexing setting els.local.collectTemplateTokens to false + restart vscode

@lifeart Can confirm disabling els.local.collectTemplateTokens code folding returns. Curiously, I turned it back on and the code folding still worked. This was for hbs files.

Folding not working for js/ts files.

lifeart/ember-language-server#364 created to have ability to disable folding range proivider

Hi @camskene!
Sorry for delay, now you could disable it in uELS extension config:

image

Let me know if you see other issues. Thank you for report!