Skip to content

Conversation

@wenxuanjun
Copy link
Contributor

Rewrote the folding range logic using a new FoldingVisitor, expanding support for code folding across blocks, type initializers, comments, and declarations.

Implemented multi_resolve for PSI references, allowing the language server to handle references that may point to multiple targets (specifically useful for imports). Also fixed a missing stub indexing in selective import lists.

Updated grammar to support top-level declarations and imports within blocks (e.g., inside $if statements), and a memory leak in the documentation provider has been resolved.

Resolves #171.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @wenxuanjun 🙇🏻 .

@spytheman spytheman merged commit 9cf6a37 into vlang:main Dec 30, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vscode extension disallowing collapsing

2 participants