Skip to content

Folding Range #146

Description

@mhanberg

Description

Port this feature from ElixirLS

https://github.com/elixir-lsp/elixir-ls/tree/master/apps/language_server/lib/language_server/providers/folding_range

Fold reasons:

  • Indentation based
  • comment blocks (two or more consecutive lines)
  • token pairs
    • do ... end
    • with ... do
    • for ... do
    • case ... do
    • fn ... end
    • << ... >>
    • { ... }
    • [ ... ]
    • ( ... )
  • heredocs (""" ... """)
  • multi-line strings
  • charlist heredocs (do we need it?)
  • multi-line charlist (do we need it?)
  • multi-line sigils
  • docs
    • moduledoc
    • typedoc
    • doc

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestport:elixir-lsA feature needing to be ported from ElixirLS

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions