haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.61k stars 351 forks source link

Cabal plugin outline view #4282

Open VenInf opened 2 weeks ago

VenInf commented 2 weeks ago

I think that it would be convenient to see an outline view of a cabal file in VSCode.

In the implementation, I propose to use the AST from the cabal's parser, using the readFileds rule. (the latest usage can be found here)

It can be converted to the outline tree and used like this.

I would like to implement this feature.