- Wait for all terms to be elaborated before showing folding regions. May want to change this to support partial results. - Use .span to extract import statements, rather than mutually recursive functions. - Some tiny other bits of cleanup
The following constructs are foldable: - Sections and namespaces - Blocks of import/open statements - Multi-line commands (so mostly definitions) - Mutual definitions - Module-level doc comments - Top-level definition doc comments Fixes #1012