microsoft / vscode-anycode

MIT License
334 stars 38 forks source link

Allow to disable code folding feature #17

Closed conwnet closed 2 years ago

conwnet commented 2 years ago

Currently vscode-anycode enabled the code folding feature for any supported languages.

But some languages (for example c++ or python) only implements folding comment feature but not folding code feature.

It cause VSCode can not folding codes with these languages. See below:

https://github.dev/microsoft/vscode-anycode/blob/main/server/src/test/fixtures/outline.py

(Once VSCode loaded the vscode-anycode extension, you can not fold codes any more.)

Also, VSCode has a native support for code folding with these languages, maybe we can provide an option to disable the code folding feature in vscode-anycode. (and default disable it temporarily may be better because of the problem described above)