-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
folding range support #1704
Comments
We'll need to implement the folding range feature for this. The current one is an indent-based solution provided by VSCode.
I did some POC and it seems like VSCode did have some logic to retain folded range. I think we can add this in the future. But since there's already an indent-based solution for folding, We'll probably put this in a lower priority. |
#1704 #1120 This adds the syntactic folding range support instead of the VSCode's default indentation-based and regex-based folding. For embedded languages like Pug and Sass, I added a simplified version of indentation folding. The indentation folding is also a fallback for svelte blocks if there is a parser error.
Hi guys,
In a Svelte file, when params of a function are not on the same line, I can't fold the whole function. I can instead only fold the function params.
becomes
instead of
Unlike
.svelte
files, it works perfectly on.js
ones.The text was updated successfully, but these errors were encountered: