-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add support to code collapse #31
Comments
Update on this: I build support for this feature but ended up disabling it last minute because it was sometimes interfering with the Typescript Language Server. Specifically, I would get old versions of source files after I called "program.getSourceFile(fileName)" from the "getOutliningSpans" callback, so it seemed like a bug in Typescript. However I didn't get time to investigate it further. Soon I plan on trying to enable it again to see if it has somehow been fixed with a newer version of Typescript. |
Any news? Thanks in advance, @runem! |
Any news? Thanks @runem! |
I tried to enable code collapse again, but now it seems like the I made sure to double check all my settings, but I have enabled code folding everywhere, and code-folding also works for other JS/TS code. All extensions, except lit-plugin, were disabled. In that process I also discovered that setting Of course, it could also be a breaking change for TS language service that I'm not aware of, but I couldn't find any related issues/changelogs. As mentioned, it could be my local vscode configuration, so it would be really helpful to me if you are able to test the feature locally yourselves. You can find the the |
Hy @runem , seems like |
Hi looking to testing but tying https://github.com/runem/lit-analyzer/suites/233972939/artifacts/46998 i get "Failed to generate URL to download artifact." |
@runem Awesome! |
Just for information, in my opinion "editor.foldingStrategy": "indentation" is not ideal solution since can affect other code like plain html or js that is not properly indented |
FWIW the |
Unfortunately is not true anymore with recent vscode. I upgraded to to 1.79 and code folding stopped work even with lit-html installed. I downgraded to 1.76 and code folding works with lit-html and lit-plugin extensions installed alongside (1.78 also did not work, i did not tested 1.77) As a side note, intelisense completion performance is a lot worse with recent vscode. Not sure if related |
Code folding is not yet supported, but I've found a workaround. By accessing the command palette and typing |
Add support to code collapse:
The text was updated successfully, but these errors were encountered: