You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ZLS should offer to collapse them into one line like other declarations. Here is an example of folding ranges in VS Code:
Care must be taken to ensure that only "imports" or "aliases" are collapsed and no other declarations. The source.organizeImports code action has dealt with a similar task here.
Zig files usually begin with a bunch of
@imports
like this:ZLS should offer to collapse them into one line like other declarations. Here is an example of folding ranges in VS Code:
Care must be taken to ensure that only "imports" or "aliases" are collapsed and no other declarations. The
source.organizeImports
code action has dealt with a similar task here.The implementation of folding ranges can be found in src/features/folding_range.zig.
The LSP specification for textDocument/foldingRange can also be useful.
The text was updated successfully, but these errors were encountered: