languageserver icon indicating copy to clipboard operation
languageserver copied to clipboard

Code folding isn't working properly

Open MrJGao opened this issue 3 years ago • 2 comments
trafficstars

Hi, for some reason, the code folding doesn't work properly on my side.

There's either no folding at all: image

Or, folds my function but I cannot unfold it, i.e., it just hides everything in the function and seems no way to unfold the function. image

Any ideas? Thanks.

MrJGao avatar Jan 07 '22 17:01 MrJGao

And, it seems vscode starts several language servers automatically at startup. Is it normal?

image

MrJGao avatar Jan 07 '22 17:01 MrJGao

I tried to use the following code in .Rprofile to disable foldingRangeProvider, but it didn't work

options(
    languageserver.server_capabilities = list(
        foldingRangeProvider = FALSE
    )
)

MrJGao avatar Jan 07 '22 18:01 MrJGao