fwcd / vscode-kotlin

Kotlin code completion, debugging, linting and more for VSCode
MIT License
295 stars 37 forks source link

imports folding like vscode-java #134

Open iykekings opened 2 years ago

iykekings commented 2 years ago

I can help conttribute to this if anyone is willing to give me some pointers on where/how to start.

fwcd commented 2 years ago

Hi! I am not entirely sure how vscode-java handles this, but I think it should be possible to implement this via the Kotlin grammar/syntax in this repo.

If that turns out to be insufficient, we could also add support via LSP's folding range request. The language server of course has the advantage of having access to the full parse tree rather than just the tokenization rules defined by the syntax grammar, but in this case I think the grammar should be sufficient.