zokugun / vscode-explicit-folding

Customize your Folding for Visual Studio Code
MIT License
103 stars 14 forks source link

Failing to get working config #17

Closed kmantel closed 4 years ago

kmantel commented 4 years ago

I wanted to use this extension to fold all python docstrings, which doesn't seem to be supported with vscode defaults. I used a config for only python files with "\"\"\"" for both begin and end, but this failed to add folding arrows as I expected. I tested something simpler to make sure it was formatted correctly, and that seems not to add folding arrows either:

"folding": {
    "*": {
        "begin": "###",
        "end": "###"
    }
}

on example .py file

###
pass
pass
###

and no folding arrows are available. Additionally, having any folding config at all seems to disable all folding arrows in several different filetypes (e.g. .py, .sh), but not .json interestingly.

Am I configuring things incorrectly or misinterpreting what can be done with this extension?

daiyam commented 4 years ago

@kmantel I've updated the extension to support docstring blocks. Enjoy :smile:

kmantel commented 4 years ago

Thanks for the fast response! This works well